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:
parent
e5cc5fd068
commit
8546411e14
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue