mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Filter \r before lexing.
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user