diff options
Diffstat (limited to 'src/bootstrap')
-rw-r--r-- | src/bootstrap/lexer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bootstrap/lexer.c b/src/bootstrap/lexer.c index 72df1ee..ee387dd 100644 --- a/src/bootstrap/lexer.c +++ b/src/bootstrap/lexer.c | |||
@@ -269,11 +269,8 @@ tokenize(const StringView *sv) { | |||
269 | } break; | 269 | } break; |
270 | default: { | 270 | default: { |
271 | size_t n = 1; | 271 | size_t n = 1; |
272 | while (scan_has_next(&scanner)) { | 272 | while (!is_delimiter(scan_peek(&scanner))) { |
273 | c = scan_next(&scanner); | 273 | scan_next(&scanner); |
274 | if (is_delimiter(c)) { | ||
275 | break; | ||
276 | } | ||
277 | n++; | 274 | n++; |
278 | } | 275 | } |
279 | if (c == EOF || c == '\0') { | 276 | if (c == EOF || c == '\0') { |