aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-13 13:22:39 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commitb8def6fc0146bbd2bffeddc22296f358223b5e76 (patch)
tree105f33ec005c3641f6151f0afa75e5387b641eb5
parentadd =/~/! casts (diff)
downloadalive-b8def6fc0146bbd2bffeddc22296f358223b5e76.tar.gz
alive-b8def6fc0146bbd2bffeddc22296f358223b5e76.zip
allow ~ 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 9cc46d7..8787d27 100644
--- a/alv/parsing.moon
+++ b/alv/parsing.moon
@@ -19,7 +19,7 @@ mspace = (comment + wc)^0 / 1 -- optional 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', '\"'