diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-07 12:38:30 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-07 12:38:30 -0400 |
| commit | 19e89b9c617bc9b11c119d5d84d2ca5eeab995d0 (patch) | |
| tree | 8d6688e9c65aa51bcd2f2ede01161e96c5c45704 /src/server | |
| parent | ee54f11d5c08ce7b2000fb0e4a3f60b4b9aeeae6 (diff) | |
Correctly resolve when conditions wrapped in parens
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/when.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/when.odin b/src/server/when.odin index e712596..1059594 100644 --- a/src/server/when.odin +++ b/src/server/when.odin @@ -86,6 +86,8 @@ resolve_when_expr :: proc( return expr, true case ^ast.Expr: #partial switch odin_expr in expr.derived { + case ^ast.Paren_Expr: + return resolve_when_expr(when_expr_map, odin_expr.expr) case ^ast.Ident: return resolve_when_ident(when_expr_map, odin_expr.name) case ^ast.Basic_Lit: |