Fix a horrible scoping/associativity bug.
`1 as $x | . | $x` didn't compile, as it was parsed as
(1 as $x | .) | $x
where `$x` is undefined, rather than as
1 as $x | (. | $x)
This commit is contained in:
1 parent
ea9db414ed
commit
63d10433c9
2 files changed
+5
-1
No files matched your search
@@ -75,7 +75,7 @@ struct lexer_param;
|
||||
|
||||
/* revolting hack */
|
||||
%left ';'
|
||||
%left '|'
|
||||
%right '|'
|
||||
%left ','
|
||||
%right "//"
|
||||
%nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR
|
||||
|
||||
Reference in new issue
Block a user