summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/2044-invalid-parsed-ident.pngbin0 -> 603 bytes
-rw-r--r--tests/typ/bugs/2044-invalid-parsed-ident.typ6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/bugs/2044-invalid-parsed-ident.png b/tests/ref/bugs/2044-invalid-parsed-ident.png
new file mode 100644
index 00000000..327150e7
--- /dev/null
+++ b/tests/ref/bugs/2044-invalid-parsed-ident.png
Binary files differ
diff --git a/tests/typ/bugs/2044-invalid-parsed-ident.typ b/tests/typ/bugs/2044-invalid-parsed-ident.typ
new file mode 100644
index 00000000..5e4b560c
--- /dev/null
+++ b/tests/typ/bugs/2044-invalid-parsed-ident.typ
@@ -0,0 +1,6 @@
+// In this bug, the dot at the end was causing the right parenthesis to be
+// parsed as an identifier instead of the closing right parenthesis.
+// Issue: https://github.com/typst/typst/issues/2044
+
+$floor(phi.alt.)$
+$floor(phi.alt. )$