diff options
author | June McEnroe <june@causal.agency> | 2024-05-21 17:07:53 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2024-05-21 17:07:53 -0400 |
commit | cc8dba0836353aa5ea1096d526daae9129da3b5e (patch) | |
tree | 80e361c4023cd75a67dc15b4e1a82e4cb61db0a0 /bin | |
parent | Add April 30 photo (diff) | |
download | src-cc8dba0836353aa5ea1096d526daae9129da3b5e.tar.gz src-cc8dba0836353aa5ea1096d526daae9129da3b5e.zip |
Fix = precedence in when
Woops, = should have lowest precedence, otherwise expressions like a = b + c don't parse right.
Diffstat (limited to '')
-rw-r--r-- | bin/when.y | 3 |
1 files changed, 2 insertions, 1 deletions
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 '<' '>' %% |