diff options
| author | T0mstone <39707032+T0mstone@users.noreply.github.com> | 2025-01-23 14:05:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-23 13:05:12 +0000 |
| commit | b7546bace7fb8640d1e7121b8bd7baf3cdb576e1 (patch) | |
| tree | 0ea8eb3f1208b3c88f73bef2a4f9a24c3f51c0a1 /crates/typst-syntax/src/parser.rs | |
| parent | ce299d5832095013bbcf2baef38552df6d2fc21b (diff) | |
Ignore shebang at start of file (#5702)
Diffstat (limited to 'crates/typst-syntax/src/parser.rs')
| -rw-r--r-- | crates/typst-syntax/src/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs index 5b9e66e2..5de71caf 100644 --- a/crates/typst-syntax/src/parser.rs +++ b/crates/typst-syntax/src/parser.rs @@ -93,6 +93,8 @@ fn markup_expr(p: &mut Parser, at_start: bool, nesting: &mut usize) { p.hint("try using a backslash escape: \\]"); } + SyntaxKind::Shebang => p.eat(), + SyntaxKind::Text | SyntaxKind::Linebreak | SyntaxKind::Escape |
