From cfdf59ab1424928cfe77fcb03e907337f73b946a Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 9 Aug 2025 11:38:53 -0400 Subject: Fix issue getting stuck in an infinite loop when unwraping comp lits --- src/server/ast.odin | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server') diff --git a/src/server/ast.odin b/src/server/ast.odin index 04993d0..dc5c0a9 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -168,6 +168,8 @@ unwrap_comp_literal :: proc(expr: ^ast.Expr) -> (^ast.Comp_Lit, int, bool) { if unary.op.kind == .And { expr = unary.expr n += 1 + } else { + break } } else { break -- cgit v1.2.3