From 8546411e14fc123eb104f24566d3a99146117e49 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 27 Nov 2016 22:16:32 -0800 Subject: [PATCH] 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. --- lips/Lexer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lips/Lexer.lua b/lips/Lexer.lua index ed7c738..ff7318c 100644 --- a/lips/Lexer.lua +++ b/lips/Lexer.lua @@ -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