summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-28 18:32:58 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-28 18:32:58 +0100
commit406de22ee5cd74dc6f67743bad4710415bb50c41 (patch)
tree37536600378cd325956201ea175469bc22db2b1a /tests/typ
parent2d56e3c5e245bf8824bf0ea8f1f1a05cb9716dc5 (diff)
Remove method call syntax kind
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/highlight.typ63
-rw-r--r--tests/typ/math/matrix.typ2
2 files changed, 64 insertions, 1 deletions
diff --git a/tests/typ/compiler/highlight.typ b/tests/typ/compiler/highlight.typ
new file mode 100644
index 00000000..6c6ec802
--- /dev/null
+++ b/tests/typ/compiler/highlight.typ
@@ -0,0 +1,63 @@
+#set page(width: auto)
+
+```typ
+#set hello()
+#set hello()
+#set hello.world()
+#set hello.my.world()
+
+#show heading: func
+#show module.func: func
+#show module.func: it => {}
+#foo(ident: ident)
+
+#hello
+#hello()
+#hello.world
+#hello.world()
+#hello().world()
+#hello.my.world
+#hello.my.world()
+#hello.my().world
+#hello.my().world()
+
+$ hello $
+$ hello() $
+$ hello.world $
+$ hello.world() $
+$ hello().world() $
+$ hello.my.world $
+$ hello.my.world() $
+$ hello.my().world $
+$ hello.my().world() $
+
+$ emph(hello) $
+$ emph(hello()) $
+$ emph(hello.world) $
+$ emph(hello.world()) $
+$ emph(hello().world()) $
+$ emph(hello.my.world) $
+$ emph(hello.my.world()) $
+$ emph(hello.my().world) $
+$ emph(hello.my().world()) $
+
+$ #hello $
+$ #hello() $
+$ #hello.world $
+$ #hello.world() $
+$ #hello().world() $
+$ #hello.my.world $
+$ #hello.my.world() $
+$ #hello.my().world $
+$ #hello.my().world() $
+
+#{ hello }
+#{ hello() }
+#{ hello.world }
+#{ hello.world() }
+#{ hello().world() }
+#{ hello.my.world }
+#{ hello.my.world() }
+#{ hello.my().world }
+#{ hello.my().world() }
+```
diff --git a/tests/typ/math/matrix.typ b/tests/typ/math/matrix.typ
index aa99bb1b..3f65a683 100644
--- a/tests/typ/math/matrix.typ
+++ b/tests/typ/math/matrix.typ
@@ -23,5 +23,5 @@ $ f(x, y) := cases(
#set math.vec(delim: "%")
---
-// Error: 9-12 missing argument: lower index
+// Error: 8-13 missing argument: lower index
$ binom(x^2) $