diff options
Diffstat (limited to 'crates/typst-syntax/src/reparser.rs')
| -rw-r--r-- | crates/typst-syntax/src/reparser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-syntax/src/reparser.rs b/crates/typst-syntax/src/reparser.rs index e03e1619..f7f89a3f 100644 --- a/crates/typst-syntax/src/reparser.rs +++ b/crates/typst-syntax/src/reparser.rs @@ -125,8 +125,8 @@ fn try_reparse( end += 1; } - // Also take hashtag. - if start > 0 && children[start - 1].kind() == SyntaxKind::Hashtag { + // Also take hash. + if start > 0 && children[start - 1].kind() == SyntaxKind::Hash { start -= 1; } |
