summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorT0mstone <39707032+T0mstone@users.noreply.github.com>2025-01-23 14:05:12 +0100
committerGitHub <noreply@github.com>2025-01-23 13:05:12 +0000
commitb7546bace7fb8640d1e7121b8bd7baf3cdb576e1 (patch)
tree0ea8eb3f1208b3c88f73bef2a4f9a24c3f51c0a1 /tests/suite
parentce299d5832095013bbcf2baef38552df6d2fc21b (diff)
Ignore shebang at start of file (#5702)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/syntax/shebang.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/suite/syntax/shebang.typ b/tests/suite/syntax/shebang.typ
new file mode 100644
index 00000000..c2eb2e43
--- /dev/null
+++ b/tests/suite/syntax/shebang.typ
@@ -0,0 +1,7 @@
+// Test shebang support.
+
+--- shebang ---
+#!typst compile
+
+// Error: 2-3 the character `!` is not valid in code
+#!not-a-shebang