summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-26 21:11:44 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-26 21:11:44 +0100
commitaaa48403cdd3d8499584eeca4103865d6425ac1b (patch)
tree5738aaee104e4529da1934d1dc089145c1aa7266 /tests
parent7ced99bcd761eb06f6000d4cde9556fb701c6805 (diff)
Require hashtag for all keywords 💂‍♀️
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/ref/blocks.pngbin799 -> 640 bytes
-rw-r--r--tests/lang/ref/values.pngbin8651 -> 8143 bytes
-rw-r--r--tests/lang/typ/blocks.typ5
-rw-r--r--tests/lang/typ/bracket-call.typ2
-rw-r--r--tests/lang/typ/if.typ2
-rw-r--r--tests/lang/typ/values.typ3
6 files changed, 2 insertions, 10 deletions
diff --git a/tests/lang/ref/blocks.png b/tests/lang/ref/blocks.png
index 22a5722a..bc96be95 100644
--- a/tests/lang/ref/blocks.png
+++ b/tests/lang/ref/blocks.png
Binary files differ
diff --git a/tests/lang/ref/values.png b/tests/lang/ref/values.png
index d4411cc8..df46bd2d 100644
--- a/tests/lang/ref/values.png
+++ b/tests/lang/ref/values.png
Binary files differ
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"} \