summary refs log tree commit diff
path: root/bin/when.y
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-05-21 17:07:53 -0400
committerJune McEnroe <june@causal.agency>2024-05-21 17:07:53 -0400
commitcc8dba0836353aa5ea1096d526daae9129da3b5e (patch)
tree80e361c4023cd75a67dc15b4e1a82e4cb61db0a0 /bin/when.y
parentAdd April 30 photo (diff)
downloadsrc-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.y3
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 '<' '>'
 
 %%
 
c4258&follow=1'>Add simple battery status and clock to xsessionJune McEnroe 2021-02-07Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe