aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-02-03 22:25:14 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit3e76ca3aaefd81bec5f65113ef6018b7148ef85e (patch)
tree210bd90056b6b39fc34f3d9022a741716bcedc9a
parentupdate nix flake with rtmidi, metadata (diff)
downloadalive-3e76ca3aaefd81bec5f65113ef6018b7148ef85e.tar.gz
alive-3e76ca3aaefd81bec5f65113ef6018b7148ef85e.zip
allow ^ and % in symbols
-rw-r--r--alv/parsing.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/alv/parsing.moon b/alv/parsing.moon
index 78ed7d1..5f4c911 100644
--- a/alv/parsing.moon
+++ b/alv/parsing.moon
@@ -19,7 +19,7 @@ space = (wc^1 * (comment^0 * wc)^0) / 1 -- required whitespace
-- atoms
digit = R '09'
-first = (R 'az', 'AZ') + S '-_+*/.,=~!?%$><'
+first = (R 'az', 'AZ') + S '-_+*^%/.,=~!?%$><'
sym = first * (first + digit)^0 / Constant\parse 'sym'
strd = '"' * (C ((P '\\"') + (P '\\\\') + (1 - P '"'))^0) * '"' / Constant\parse 'str', '\"'