diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-04 22:14:57 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-04 22:14:57 +0200 |
| commit | e674fd7e909c273c36952f01829544a2efc11c92 (patch) | |
| tree | c74218ce4a546de06b28aad2f73ba460338252b7 /src/syntax | |
| parent | 75472fee1a2377f56551fc856cf7511bd55091f0 (diff) | |
New raw theme & nicer debug representation
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/highlight.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs index 8e62424f..dae379ac 100644 --- a/src/syntax/highlight.rs +++ b/src/syntax/highlight.rs @@ -95,7 +95,7 @@ pub enum Category { /// A function. Function, /// An interpolated variable in markup. - Variable, + Interpolated, /// An invalid node. Invalid, } @@ -178,7 +178,7 @@ impl Category { NodeKind::None => Some(Category::None), NodeKind::Auto => Some(Category::Auto), NodeKind::Ident(_) => match parent.kind() { - NodeKind::Markup(_) => Some(Category::Variable), + NodeKind::Markup(_) => Some(Category::Interpolated), NodeKind::FuncCall => Some(Category::Function), NodeKind::MethodCall if i > 0 => Some(Category::Function), NodeKind::ClosureExpr if i == 0 => Some(Category::Function), @@ -263,7 +263,7 @@ impl Category { Self::Number => "constant.numeric.typst", Self::String => "string.quoted.double.typst", Self::Function => "entity.name.function.typst", - Self::Variable => "variable.parameter.typst", + Self::Interpolated => "entity.other.interpolated.typst", Self::Invalid => "invalid.typst", } } |
