From e674fd7e909c273c36952f01829544a2efc11c92 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 4 May 2022 22:14:57 +0200 Subject: New raw theme & nicer debug representation --- src/syntax/highlight.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/syntax') 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", } } -- cgit v1.2.3