Skip to content

Commit 2bcea0d

Browse files
committed
Fix bug in fallback scanner
Thanks to Stefan Ubbink for reporting.
1 parent de346b2 commit 2bcea0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fallback/scanner.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ static really_inline const char *scan_comment(
2020
assert(!parser->file->state.is_escaped);
2121

2222
while (start < end) {
23-
if (unlikely(*start == '\n'))
23+
if (unlikely(*start == '\n')) {
24+
parser->file->state.in_comment = 0;
2425
return start;
26+
}
2527
start++;
2628
}
2729

0 commit comments

Comments
 (0)