1
0
mirror of https://github.com/g012/l65.git synced 2024-06-02 12:41:28 +00:00

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

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