Lua: fix parenthes evaluation

This commit is contained in:
Zef Hemel
2026-06-21 19:13:11 +02:00
parent 2aa89202b3
commit dfcf3035eb
5 changed files with 166 additions and 13 deletions
+5 -1
View File
@@ -1269,7 +1269,11 @@ function parseExpression(t: ParseTree, ctx: ASTCtx): LuaExpression {
};
case "Parens":
return parseExpression(t.children![1], ctx);
return {
type: "Parenthesized",
expression: parseExpression(t.children![1], ctx),
ctx: context(t, ctx),
};
case "FunctionCall": {
return parseFunctionCall(t, ctx);
}