Fix empty strings being parsed incorrectly
This commit is contained in:
parent
5c08a1b63e
commit
c071ca82aa
|
@ -6,7 +6,7 @@ let pr = lambda (str):
|
||||||
@print(str)
|
@print(str)
|
||||||
end
|
end
|
||||||
|
|
||||||
pr("eeee")
|
pr("")
|
||||||
|
|
||||||
while i < 5:
|
while i < 5:
|
||||||
pr("hello, world")
|
pr("hello, world")
|
||||||
|
|
|
@ -325,8 +325,6 @@ pub const Tokenizer = struct {
|
||||||
|
|
||||||
const begin = cursor;
|
const begin = cursor;
|
||||||
|
|
||||||
cursor += 1;
|
|
||||||
|
|
||||||
while (cursor < self.source.len) switch (self.source[cursor]) {
|
while (cursor < self.source.len) switch (self.source[cursor]) {
|
||||||
'"' => break,
|
'"' => break,
|
||||||
else => cursor += 1,
|
else => cursor += 1,
|
||||||
|
|
Loading…
Reference in New Issue