diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-13 13:22:39 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:23:21 +0000 |
| commit | b8def6fc0146bbd2bffeddc22296f358223b5e76 (patch) | |
| tree | 105f33ec005c3641f6151f0afa75e5387b641eb5 | |
| parent | add =/~/! casts (diff) | |
| download | alive-b8def6fc0146bbd2bffeddc22296f358223b5e76.tar.gz alive-b8def6fc0146bbd2bffeddc22296f358223b5e76.zip | |
allow ~ in symbols
| -rw-r--r-- | alv/parsing.moon | 2 |
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', '\"' |
