aboutsummaryrefslogtreecommitdiffstats
path: root/docs/guide
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-01-02 22:32:12 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit69a63e7d8e71132fbd986fd4463536de700a7f93 (patch)
treed47b812f03537869278fe13ee1aea8ff5d6ae0e1 /docs/guide
parentdocs/guide: fixes (diff)
downloadalive-69a63e7d8e71132fbd986fd4463536de700a7f93.tar.gz
alive-69a63e7d8e71132fbd986fd4463536de700a7f93.zip
syntax: more whitelisted special chars, comment parsing
Diffstat (limited to 'docs/guide')
-rw-r--r--docs/guide/07_defining-symbols.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/guide/07_defining-symbols.md b/docs/guide/07_defining-symbols.md
index c25d34e..488270a 100644
--- a/docs/guide/07_defining-symbols.md
+++ b/docs/guide/07_defining-symbols.md
@@ -19,7 +19,13 @@ symbol `result`, and then refer to it by that symbol in the [trace][] operator:
(def result (+ 1 2))
(trace result)
-Symbols need to start with a letter or one of the characters `-_+*/.=~!?%`.
+Symbols need to start with a letter or one of the following special characters:
+
+ - + * /
+ _ . , =
+ ! ? % $
+ > < ~
+
After the first character, numbers are also allowed. There are two types of
symbols that are treated specially: symbols containing a slash (`math/+`), and
symbols starting and ending with asterisks (`*clock*`):