diff options
| author | Carson McManus <dyc3@users.noreply.github.com> | 2023-12-18 06:33:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 12:33:29 +0100 |
| commit | 754e1788b2c690a5520d34b967cae31fb44726b9 (patch) | |
| tree | e1a90393e081811d8168404ad4bbdfd8c63ec5e9 /tests | |
| parent | 08225e42d8748802b11b056964cb7763e7da8135 (diff) | |
Fix a parser bug causing `x.)` to be treated as a field access (#2962)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/2044-invalid-parsed-ident.png | bin | 0 -> 603 bytes | |||
| -rw-r--r-- | tests/typ/bugs/2044-invalid-parsed-ident.typ | 6 |
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 Binary files differnew file mode 100644 index 00000000..327150e7 --- /dev/null +++ b/tests/ref/bugs/2044-invalid-parsed-ident.png 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. )$ |
