1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-11-14 14:49:03 -08:00

handle ; comments in variable definitions again

this is hacky but i don't wanna break existing code.
if you used // comments, then you'll have to change.
This commit is contained in:
Connor Olding 2016-11-27 22:16:32 -08:00
parent e5cc5fd068
commit 8546411e14

View file

@ -410,7 +410,7 @@ function Lexer:lex(_yield)
if self.chr == '@' then
-- old syntax; nothing to do here
else
buff = self:read_chars('[^\n]')
buff = self:read_chars('[^;\n]')
yield('EXPR', buff)
end
elseif self.chr == ']' then