aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-14 08:16:45 +0000
committerBlaž Hrastnik2021-04-14 08:16:45 +0000
commit305a059f583ba0de3217506d4f89fc462de98cc0 (patch)
tree2a7018c0941ceb3168a51960fcf3325b31745e59
parentb5b650cfe7df36e83b96c6663f2dc041f5d2b748 (diff)
Highlight metavariables ($var) inside rust macros.
-rw-r--r--runtime/queries/rust/highlights.scm1
-rw-r--r--theme.toml3
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index dcc9bca9..7a275d8e 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 9a1d76ab..f46ce1a9 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