Fix empty strings being parsed incorrectly
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kayomn 2023-08-26 21:36:16 +01:00
parent 5c08a1b63e
commit c071ca82aa
2 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,7 @@ let pr = lambda (str):
@print(str)
end
pr("eeee")
pr("")
while i < 5:
pr("hello, world")

View File

@ -325,8 +325,6 @@ pub const Tokenizer = struct {
const begin = cursor;
cursor += 1;
while (cursor < self.source.len) switch (self.source[cursor]) {
'"' => break,
else => cursor += 1,