aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-27 00:02:16 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-27 00:02:16 -0600
commit879b41a5a35d586a1c96a07d1b899fbda140f266 (patch)
tree36881373517df833449da7da63db16883cd9691b
parentac370e465ef023c0d5131f116738aeb05e43ed3f (diff)
downloadspec-879b41a5a35d586a1c96a07d1b899fbda140f266.tar.gz
spec-879b41a5a35d586a1c96a07d1b899fbda140f266.zip
fix lists in syntax.md
smdh pandoc why are you not in line with commonmark here
-rw-r--r--syntax.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/syntax.md b/syntax.md
index 12e0b6c..d2e69df 100644
--- a/syntax.md
+++ b/syntax.md
@@ -15,6 +15,7 @@ A Crowbar source file is read into memory in two phases: *scanning* (which conve
# Scanning
A *token* is one of the following kinds of token:
+
- a *keyword*,
- an *identifier*,
- a *constant*,
@@ -26,6 +27,7 @@ Tokens are separated by either *whitespace* or a *comment*.
## Keywords
A *keyword* is one of the following literal words:
+
- `bool`
- `break`
- `case`
@@ -79,6 +81,7 @@ Subsequent characters may have any of the above-listed Unicode categories, or on
## Constants
A *constant* can have one of six types:
+
- a *decimal constant*, a sequence of characters drawn from the set {`0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `_`};
- a *binary constant*, a prefix (either `0b` or `0B`) followed by a sequence of characters drawn from the set {`0`, `1`, `_`};
- an *octal constant*, the prefix `0o` followed by a sequence of characters drawn from the set {`0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `_`};
@@ -92,6 +95,7 @@ A *constant* can have one of six types:
### Escape Sequences
The following sequences of characters are *escape sequences*:
+
- `\'`
- `\"`
- `\\`
@@ -112,6 +116,7 @@ It then ends with a `"`.
## Punctuators
The following sequences of characters form *punctuators*:
+
- `[`
- `]`
- `(`
@@ -130,7 +135,7 @@ The following sequences of characters form *punctuators*:
- `&`
- `|`
- `^`
-- the tilde, `~` (given special treatment on this line due to [a bug in the Markdown renderer that sr.ht uses](https://github.com/miyuchina/mistletoe/issues/91))
+- `~`
- `>`
- `<`
- `=`