mirror of
https://github.com/notwa/lips
synced 2024-05-05 19:03:27 -07: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:
parent
e5cc5fd068
commit
8546411e14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user