diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-05 12:25:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-05 12:25:37 +0100 |
| commit | c2e458a133772a94009733040b39d58e781af977 (patch) | |
| tree | 9404ef8f4982a068f046cb772166fdb8af7c3a0b /src/syntax/highlight.rs | |
| parent | 1d324235bd80fe8d1fb21b1e73ae9e3dfe918078 (diff) | |
Symbol notation
Diffstat (limited to 'src/syntax/highlight.rs')
| -rw-r--r-- | src/syntax/highlight.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs index 526d1302..d4da7b3e 100644 --- a/src/syntax/highlight.rs +++ b/src/syntax/highlight.rs @@ -139,6 +139,8 @@ pub enum Category { Escape, /// An easily typable shortcut to a unicode codepoint. Shorthand, + /// Symbol notation. + Symbol, /// A smart quote. SmartQuote, /// Strong markup. @@ -285,6 +287,7 @@ impl Category { SyntaxKind::Linebreak => Some(Category::Escape), SyntaxKind::Escape(_) => Some(Category::Escape), SyntaxKind::Shorthand(_) => Some(Category::Shorthand), + SyntaxKind::Symbol(_) => Some(Category::Symbol), SyntaxKind::SmartQuote { .. } => Some(Category::SmartQuote), SyntaxKind::Strong => Some(Category::Strong), SyntaxKind::Emph => Some(Category::Emph), @@ -369,6 +372,7 @@ impl Category { Self::Punctuation => "punctuation.typst", Self::Escape => "constant.character.escape.typst", Self::Shorthand => "constant.character.shorthand.typst", + Self::Symbol => "constant.symbol.typst", Self::SmartQuote => "constant.character.quote.typst", Self::Strong => "markup.bold.typst", Self::Emph => "markup.italic.typst", |
