fix: single line comments not working

This commit is contained in:
overflowerror 2024-05-17 10:55:15 +02:00
parent 3021ff6f4a
commit e462473b39
3 changed files with 2 additions and 1 deletions

View file

@ -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; }

View file

@ -0,0 +1 @@
// foo bar