You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix parser to allow binary operators for binding syntax
Previously, the precedence of `as` binding was higher than the binary
operators. This results in unexpected behaviors, `1 + 2 as $x | -$x`
was `-1` instead of `-3`. The commit 92daac9 (PR jqlang#3053) changed
the behavior to emit syntax error on this case. Now, this commit allows
binary operators with `as` binding. This fixesjqlang#2446, and fixesjqlang#3284.
0 commit comments