diff options
| author | Max <me@mkor.je> | 2024-08-09 07:41:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-09 07:41:01 +0000 |
| commit | b07607d35e697be3dd5e56945b16afa8103a491e (patch) | |
| tree | 2bd7ceac0b6797c1f156b35a8a21fe68905e00f6 /crates/typst-syntax/src/highlight.rs | |
| parent | a6a8cdaa28abe22c3a40e7a96d15e5e02e8a445e (diff) | |
Split shorthands into math and markup, add tilde shorthand (#4706)
Diffstat (limited to 'crates/typst-syntax/src/highlight.rs')
| -rw-r--r-- | crates/typst-syntax/src/highlight.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-syntax/src/highlight.rs b/crates/typst-syntax/src/highlight.rs index 0c1f3d5f..ddd29326 100644 --- a/crates/typst-syntax/src/highlight.rs +++ b/crates/typst-syntax/src/highlight.rs @@ -172,6 +172,7 @@ pub fn highlight(node: &LinkedNode) -> Option<Tag> { SyntaxKind::Math => None, SyntaxKind::MathIdent => highlight_ident(node), + SyntaxKind::MathShorthand => Some(Tag::Escape), SyntaxKind::MathAlignPoint => Some(Tag::MathOperator), SyntaxKind::MathDelimited => None, SyntaxKind::MathAttach => None, |
