From 406de22ee5cd74dc6f67743bad4710415bb50c41 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 28 Jan 2023 18:32:58 +0100 Subject: Remove method call syntax kind --- tests/ref/compiler/highlight.png | Bin 0 -> 137139 bytes tests/ref/math/syntax.png | Bin 54038 -> 54023 bytes tests/typ/compiler/highlight.typ | 63 +++++++++++++++++++++++++++++++++++++++ tests/typ/math/matrix.typ | 2 +- 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 tests/ref/compiler/highlight.png create mode 100644 tests/typ/compiler/highlight.typ (limited to 'tests') diff --git a/tests/ref/compiler/highlight.png b/tests/ref/compiler/highlight.png new file mode 100644 index 00000000..317a2128 Binary files /dev/null and b/tests/ref/compiler/highlight.png differ diff --git a/tests/ref/math/syntax.png b/tests/ref/math/syntax.png index 0b738511..ce83f9f2 100644 Binary files a/tests/ref/math/syntax.png and b/tests/ref/math/syntax.png differ 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) $ -- cgit v1.2.3