Fixed handling of multiple semicolon (;;*) in lexer.

This commit is contained in:
g012 2017-09-20 17:05:01 +02:00
parent dbe11c442f
commit 17f7465d06
1 changed files with 5 additions and 0 deletions

View File

@ -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