diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-26 21:11:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-26 21:11:44 +0100 |
| commit | aaa48403cdd3d8499584eeca4103865d6425ac1b (patch) | |
| tree | 5738aaee104e4529da1934d1dc089145c1aa7266 /tests | |
| parent | 7ced99bcd761eb06f6000d4cde9556fb701c6805 (diff) | |
Require hashtag for all keywords 💂♀️
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lang/ref/blocks.png | bin | 799 -> 640 bytes | |||
| -rw-r--r-- | tests/lang/ref/values.png | bin | 8651 -> 8143 bytes | |||
| -rw-r--r-- | tests/lang/typ/blocks.typ | 5 | ||||
| -rw-r--r-- | tests/lang/typ/bracket-call.typ | 2 | ||||
| -rw-r--r-- | tests/lang/typ/if.typ | 2 | ||||
| -rw-r--r-- | tests/lang/typ/values.typ | 3 |
6 files changed, 2 insertions, 10 deletions
diff --git a/tests/lang/ref/blocks.png b/tests/lang/ref/blocks.png Binary files differindex 22a5722a..bc96be95 100644 --- a/tests/lang/ref/blocks.png +++ b/tests/lang/ref/blocks.png diff --git a/tests/lang/ref/values.png b/tests/lang/ref/values.png Binary files differindex d4411cc8..df46bd2d 100644 --- a/tests/lang/ref/values.png +++ b/tests/lang/ref/values.png diff --git a/tests/lang/typ/blocks.typ b/tests/lang/typ/blocks.typ index faef0987..79c092a2 100644 --- a/tests/lang/typ/blocks.typ +++ b/tests/lang/typ/blocks.typ @@ -19,8 +19,3 @@ // Missing closing bracket in template expression. // Error: 1:11-1:11 expected closing bracket {[_] + [4_} - -// Opening brace is ignored after one expression is parsed. -// Error: 2:4-2:5 unexpected hex value -// Error: 1:5-1:6 unexpected opening brace -{5 #{}*.* diff --git a/tests/lang/typ/bracket-call.typ b/tests/lang/typ/bracket-call.typ index 73250e08..fb6ef557 100644 --- a/tests/lang/typ/bracket-call.typ +++ b/tests/lang/typ/bracket-call.typ @@ -80,7 +80,7 @@ #let x = "string" [x] -// Error: 1:2-1:3 expected function name, found hex value +// Error: 1:2-1:3 expected function name, found invalid token [# 1] // Error: 4:1-4:1 expected function name diff --git a/tests/lang/typ/if.typ b/tests/lang/typ/if.typ index f7de7716..68f345ca 100644 --- a/tests/lang/typ/if.typ +++ b/tests/lang/typ/if.typ @@ -53,7 +53,7 @@ a#if true {} a#if true [b] #else c // Lone else. -// Error: 2:1-2:6 unexpected keyword `else` +// Error: 2:1-2:6 unexpected keyword `#else` // Error: 1:8-1:8 expected function name #else [] diff --git a/tests/lang/typ/values.typ b/tests/lang/typ/values.typ index cab63044..55712c4d 100644 --- a/tests/lang/typ/values.typ +++ b/tests/lang/typ/values.typ @@ -32,9 +32,6 @@ // Colors. {#f7a20500} \ -// Error: 1:2-1:5 invalid color -{#a5} - // Strings and escaping. {"hi"} \ {"a\n[]\"\u{1F680}string"} \ |
