From cc8dba0836353aa5ea1096d526daae9129da3b5e Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 21 May 2024 17:07:53 -0400 Subject: Fix = precedence in when Woops, = should have lowest precedence, otherwise expressions like a = b + c don't parse right. --- bin/when.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/when.y b/bin/when.y index 46651ebb..bbc86084 100644 --- a/bin/when.y +++ b/bin/when.y @@ -204,8 +204,9 @@ static void printScalar(struct tm scalar) { %} %token Name Number Month Day +%right '=' %left '+' '-' -%right '=' '<' '>' +%right '<' '>' %% -- cgit 1.4.1