From: Stephen Dolan Date: Mon, 17 Sep 2012 21:37:51 +0000 (+0100) Subject: Fix a precedence bug. X-Git-Tag: jq-1.1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f13865d7a11d1aa6322a28e46eaaa463d823f44e;p=jq Fix a precedence bug. a == b or c == d should obviously parse as (a==b) or (c==d). --- diff --git a/c/parser.y b/c/parser.y index 4492d18..fd5dfbc 100644 --- a/c/parser.y +++ b/c/parser.y @@ -72,9 +72,9 @@ %left ',' %right "//" %nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR -%nonassoc EQ %left OR %left AND +%nonassoc EQ %left '+' '-' %left '*' '/'