We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error message for all of these cases is always AssertionError, thrown at self._tokens[self._pos].matches(lexer.TokSymbol(keyword)) in lua.py.
self._tokens[self._pos].matches(lexer.TokSymbol(keyword))
lua.py
Parenthesized functions AssertionError (expected ) got ():
)
(
dbg=(function() end)()
Correctly parsed:
dbg=function() end dbg = dbg()
Parenthesized tables AssertionError (expected ) got :): (note: tables have __sub methods defined in metatables)
:
somefunction({(table1 - table2):unpack()}))
local temp = (self.pos - self.anchor) somefunction({temp:unpack()}))
The text was updated successfully, but these errors were encountered:
This can temporarily be worked around by replacing operators that require parentheticalization with their dunder builtin function equivalents:
This code (which is correct, but p8tool cannot parse)
somefunction((table1 - table2):unpack())
becomes
somefunction(table1:__sub(table2):unpack())
Sorry, something went wrong.
No branches or pull requests
The error message for all of these cases is always AssertionError, thrown at
self._tokens[self._pos].matches(lexer.TokSymbol(keyword))
inlua.py
.Parenthesized functions
AssertionError (expected
)
got(
):Correctly parsed:
Parenthesized tables
AssertionError (expected
)
got:
):(note: tables have __sub methods defined in metatables)
Correctly parsed:
The text was updated successfully, but these errors were encountered: