about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-07-21T15·24+0000
committerGitHub <noreply@github.com>2018-07-21T15·24+0000
commit85fe4a819ca52ffbe99dd0d7820b5cd6219c50f1 (patch)
treeaa5445205124bdc4a05ed79804a6eaa6b21dc4d3 /src/libexpr
parent1b34b69b45106e5bfdbdc0201d3ff4dcd36632f0 (diff)
parser.y: fix assoc of -> and < > <= >=
The parser allowed senseless `a > b > c` but disallowed `a -> b -> c` which seems valid
It might be a typo
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index eee48887dc22..3ef896692e31 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -273,11 +273,11 @@ void yyerror(YYLTYPE * loc, yyscan_t scanner, ParseData * data, const char * err
 %token IND_STRING_OPEN IND_STRING_CLOSE
 %token ELLIPSIS
 
-%nonassoc IMPL
+%left IMPL
 %left OR
 %left AND
 %nonassoc EQ NEQ
-%left '<' '>' LEQ GEQ
+%nonassoc '<' '>' LEQ GEQ
 %right UPDATE
 %left NOT
 %left '+' '-'