mirror of
https://github.com/g012/l65.git
synced 2025-01-19 20:33:08 +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
|
nodeGoto.Tokens = tokenList
|
||||||
stat = nodeGoto
|
stat = nodeGoto
|
||||||
|
|
||||||
|
elseif tok:IsSymbol(';') then
|
||||||
|
stat = { AstType='SemicolonStatement', Tokens={} }
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
--statementParseExpr
|
--statementParseExpr
|
||||||
@ -2270,6 +2273,8 @@ local function Format65(ast)
|
|||||||
elseif statement.AstType == 'Eof' then
|
elseif statement.AstType == 'Eof' then
|
||||||
appendWhite()
|
appendWhite()
|
||||||
|
|
||||||
|
elseif statement.AstType == 'SemicolonStatement' then
|
||||||
|
|
||||||
else
|
else
|
||||||
print("Unknown AST Type: ", statement.AstType)
|
print("Unknown AST Type: ", statement.AstType)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user