diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/syntax/bugs.typ | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/suite/syntax/bugs.typ b/tests/suite/syntax/bugs.typ new file mode 100644 index 00000000..53c41b01 --- /dev/null +++ b/tests/suite/syntax/bugs.typ @@ -0,0 +1,21 @@ +--- issue-4571-panic-when-compiling-invalid-file --- +// Test that trying to parse the following does not result in a panic. + +// Error: 1:9-10 unclosed delimiter +// Error: 1:22 expected pattern +// Error: 1:23-24 unexpected star +// Error: 2:1-2:2 the character `#` is not valid in code +// Error: 2:2-2:8 expected pattern, found keyword `import` +// Hint: 2:2-2:8 keyword `import` is not allowed as an identifier; try `import_` instead +// Error: 2:9-2:20 expected identifier, found string +// Error: 3:1-3:2 the character `#` is not valid in code +// Error: 3:2-3:5 expected pattern, found keyword `let` +// Hint: 3:2-3:5 keyword `let` is not allowed as an identifier; try `let_` instead +// Error: 4:3-4:4 unexpected equals sign +// Error: 4:5-4:6 unclosed delimiter +// Error: 4:6 expected equals sign +#import (hntle-clues: * +#import "/util.typ": qrlink +#let auton( +) = { + |
