From 305a059f583ba0de3217506d4f89fc462de98cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 14 Apr 2021 17:16:45 +0900 Subject: [PATCH] Highlight metavariables ($var) inside rust macros. --- runtime/queries/rust/highlights.scm | 1 + theme.toml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index dcc9bca9e..7a275d8e3 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -116,6 +116,7 @@ (super) @keyword (self) @variable.builtin +(metavariable) @variable [ (char_literal) diff --git a/theme.toml b/theme.toml index 9a1d76ab0..f46ce1a94 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,8 @@ "operator" = "#dbbfef" # lilac # "property" = "#a4a0e8" # lavender "property" = "#ffffff" # white -"variable" = "#a4a0e8" # lavender +# "variable" = "#a4a0e8" # lavender +"variable" = "#eccdba" # almond "variable.parameter" = "#a4a0e8" # lavender # TODO distinguish type from type.builtin? "type" = "#ffffff" # white