mirror of
https://github.com/sigmasternchen/macrofuck
synced 2025-03-15 07:08:56 +00:00
fix: single line comments not working
This commit is contained in:
parent
3021ff6f4a
commit
e462473b39
3 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ strbuf_t strbuf = NULL;
|
|||
<COMMENT>\n { }
|
||||
<COMMENT>"*"[^*\/\n]* { }
|
||||
|
||||
<INITIAL>"//"[^\n]\n { /* single line comment */ }
|
||||
<INITIAL>"//"[^\n]* { /* single line comment */ }
|
||||
|
||||
<INITIAL>";" { return SEMICOLON; }
|
||||
|
||||
|
|
1
compiler/test/cases/000a-bug-single-line-comments.in
Normal file
1
compiler/test/cases/000a-bug-single-line-comments.in
Normal file
|
@ -0,0 +1 @@
|
|||
// foo bar
|
0
compiler/test/cases/000a-bug-single-line-comments.out
Normal file
0
compiler/test/cases/000a-bug-single-line-comments.out
Normal file
Loading…
Reference in a new issue