Fix whitespace skipping in scanner
Once again, implicit fall-through is the devil.
This commit is contained in:
parent
61f03a116c
commit
751929a058
2 changed files with 40 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ static void skip_whitespace(TSLexer *lexer) {
|
|||
case '\n':
|
||||
case '\r':
|
||||
lexer->advance(lexer, true);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue