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

@@ -282,8 +282,9 @@ static inline bool is_whitespace(char c)
case ' ':
case '\t':
case '\n':
case '\r':
return true;
case '\r':
UNREACHABLE
default:
return false;
}