summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-02 22:22:08 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-02 22:22:08 +0000
commit63d10433c9e92028d5b6acda47119bde998eae1f (patch)
treee0d4e1506d3c0c60de6ce2162f80dc5ed5814159 /parser.y
parentea9db414edd078d8cb5e95a7694df7ae81d6daac (diff)
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)
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.y b/parser.y
index 59d535e6..9c234506 100644
--- a/parser.y
+++ b/parser.y
@@ -75,7 +75,7 @@ struct lexer_param;
/* revolting hack */
%left ';'
-%left '|'
+%right '|'
%left ','
%right "//"
%nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR