Open toxamin opened 1 year ago
Currently, due to this line: https://github.com/ReFreezed/DumbLuaParser/blob/a14fbbefb47e28c7e29a4721be236e25f4c686f4/dumbParser.lua#L2051
the following code fails to parse correctly: local _ = 6 ^ -4
local _ = 6 ^ -4
Proposed solution: Change the line to include a check for "^" (not sure if this breaks anything) and ((OPERATOR_PRECEDENCE.unary > lastPrecedence) or lastPrecedence == 11)
and ((OPERATOR_PRECEDENCE.unary > lastPrecedence) or lastPrecedence == 11)
Currently, due to this line: https://github.com/ReFreezed/DumbLuaParser/blob/a14fbbefb47e28c7e29a4721be236e25f4c686f4/dumbParser.lua#L2051
the following code fails to parse correctly:
local _ = 6 ^ -4
Proposed solution: Change the line to include a check for "^" (not sure if this breaks anything)
and ((OPERATOR_PRECEDENCE.unary > lastPrecedence) or lastPrecedence == 11)