From 535349acc49b6481182603f321679078e5bf9105 Mon Sep 17 00:00:00 2001 From: cassowarii Date: Sun, 12 Jul 2026 13:46:53 -0700 Subject: [PATCH] catch weird syntax errors with non-expr after binary op --- src/parse/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse/parser.c b/src/parse/parser.c index 5774da3..639fec7 100644 --- a/src/parse/parser.c +++ b/src/parse/parser.c @@ -637,6 +637,7 @@ static sbAst parse_expr(hParser pr, u8 min_precedence) { if (rhs == NO_NODE) return syntax_error(pr); } else { rhs = parse_expr(pr, infix->right_precedence); + if (rhs == NO_NODE) return syntax_error(pr); } if (ast_type == AST_NODE_OP) { -- 1.8.3.1