summaryrefslogtreecommitdiff
path: root/tests/typ/code/block-invalid.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-09 10:50:25 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-09 10:50:25 +0200
commit9950627789358b4d46c7fd8ba20d1428aee7bf01 (patch)
tree9cad73f1f7abe6b6768575776d0c3cd1af8c6c33 /tests/typ/code/block-invalid.typ
parent4fb58acafde3ca7020a980bd1e0a3585a47ca4f0 (diff)
Even shorter error annotations
Error annotations are now relative to the first following non-comment line.
Diffstat (limited to 'tests/typ/code/block-invalid.typ')
-rw-r--r--tests/typ/code/block-invalid.typ8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/code/block-invalid.typ b/tests/typ/code/block-invalid.typ
index 7116e86a..01df81d5 100644
--- a/tests/typ/code/block-invalid.typ
+++ b/tests/typ/code/block-invalid.typ
@@ -7,13 +7,13 @@
{1u}
// Should output `1`.
-// Error: 2:3 expected semicolon or line break
-// Error: 1:4-1:5 cannot join integer with integer
+// Error: 3 expected semicolon or line break
+// Error: 4-5 cannot join integer with integer
{1 2}
// Should output `2`.
-// Error: 2:12 expected semicolon or line break
-// Error: 1:22 expected semicolon or line break
+// Error: 12 expected semicolon or line break
+// Error: 22 expected semicolon or line break
{let x = -1 let y = 3 x + y}
// Should output `3`.