Skip to content
Snippets Groups Projects
Commit 684d2007 authored by Jeanine Adkisson's avatar Jeanine Adkisson
Browse files

Merge pull request #278 from JonathonReinhart/master

Fix C lexer w.r.t function declarations
parents dbdd4e7d c3a49975
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -158,10 +158,10 @@ module Rouge
)mx do |m|
# TODO: do this better.
recurse m[1]
token Name::Function
token Name::Function, m[2]
recurse m[3]
recurse m[4]
token Punctuation
token Punctuation, m[5]
push :statement
end
 
Loading
Loading
Loading
Loading
@@ -32,6 +32,20 @@ static int not_a_comment();
#macro
 
 
/* Bug #277: C function prototype syntax highlighting broken if space before semicolon */
void foo() ;
void foo() {
/* nothing */
}
void foo2(void)
{
/* nothing */
}
/* Execute compiled code */
 
/* XXX TO DO:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment