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>2021-01-02 22:32:12 +0000
commit5842ea9f374b40afb745dad7367a970f79d9f33e (patch)
treec3d8d7cf15ec5bcaf3f9b8c75a29d9d9bfdf4f22 /docs/guide
parentdocs/guide: fixes (diff)
downloadalive-5842ea9f374b40afb745dad7367a970f79d9f33e.tar.gz
alive-5842ea9f374b40afb745dad7367a970f79d9f33e.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*`):