Filter \r before lexing.

This commit is contained in:
Christoffer Lerno
2021-12-03 16:43:37 +01:00
parent 2c802878bb
commit bc2d789c2e
5 changed files with 33 additions and 20 deletions

View File

@@ -160,9 +160,10 @@ fn bool LexInfo.scanWhite(LexInfo *lex)
// Skip past spaces and tabs
case ' ':
case '\t':
case '\r':
lex_skipchar(lex);
break;
case '\r':
UNREACHABLE
// Skip past new line
case '\n':