We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
singleline_comment
initial_linebegin
1 parent 33a1d81 commit a3f52d4Copy full SHA for a3f52d4
cparser/Lexer.mll
@@ -354,7 +354,7 @@ rule initial = parse
354
| '\n' { new_line lexbuf; initial_linebegin lexbuf }
355
| whitespace_char_no_newline + { initial lexbuf }
356
| "/*" { multiline_comment lexbuf; initial lexbuf }
357
- | "//" { singleline_comment lexbuf; initial lexbuf }
+ | "//" { singleline_comment lexbuf; initial_linebegin lexbuf }
358
| integer_constant as s { CONSTANT (Cabs.CONST_INT s, currentLoc lexbuf) }
359
| decimal_floating_constant { CONSTANT (Cabs.CONST_FLOAT
360
{Cabs.isHex_FI = false;
0 commit comments