From 17f7465d0673ff61bef80e763a9502106871d140 Mon Sep 17 00:00:00 2001 From: g012 Date: Wed, 20 Sep 2017 17:05:01 +0200 Subject: [PATCH] Fixed handling of multiple semicolon (;;*) in lexer. --- l65.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/l65.lua b/l65.lua index 65b3532..819db48 100644 --- a/l65.lua +++ b/l65.lua @@ -1780,6 +1780,9 @@ local function ParseLua(src) nodeGoto.Tokens = tokenList stat = nodeGoto + elseif tok:IsSymbol(';') then + stat = { AstType='SemicolonStatement', Tokens={} } + else --statementParseExpr @@ -2270,6 +2273,8 @@ local function Format65(ast) elseif statement.AstType == 'Eof' then appendWhite() + elseif statement.AstType == 'SemicolonStatement' then + else print("Unknown AST Type: ", statement.AstType) end