Skip to content
Snippets Groups Projects
Commit eb4bcc36 authored by Jonathon Reinhart's avatar Jonathon Reinhart
Browse files

Fix C lexer w.r.t function declarations

These tokens were missing the specific regex match arguments, causing
duplicated output.

This fixes #277.
parent dbdd4e7d
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
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