From b7546bace7fb8640d1e7121b8bd7baf3cdb576e1 Mon Sep 17 00:00:00 2001 From: T0mstone <39707032+T0mstone@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:05:12 +0100 Subject: Ignore shebang at start of file (#5702) --- tests/suite/syntax/shebang.typ | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/suite/syntax/shebang.typ (limited to 'tests') 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 -- cgit v1.2.3