mirror of
https://github.com/g012/l65.git
synced 2025-01-01 06:30:16 +00:00
Fixed handling of multiple semicolon (;;*) in lexer.
This commit is contained in:
parent
dbe11c442f
commit
17f7465d06
5
l65.lua
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user