From: cassowarii Date: Sun, 12 Jul 2026 20:46:53 +0000 (-0700) Subject: catch weird syntax errors with non-expr after binary op X-Git-Url: https://git.cassowary.me/gitweb.cgi?a=commitdiff_plain;h=535349acc49b6481182603f321679078e5bf9105;p=sarabande.git catch weird syntax errors with non-expr after binary op --- 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) {