diff options
author | Blaž Hrastnik | 2021-04-14 08:16:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-04-14 08:16:45 +0000 |
commit | 305a059f583ba0de3217506d4f89fc462de98cc0 (patch) | |
tree | 2a7018c0941ceb3168a51960fcf3325b31745e59 | |
parent | b5b650cfe7df36e83b96c6663f2dc041f5d2b748 (diff) |
Highlight metavariables ($var) inside rust macros.
-rw-r--r-- | runtime/queries/rust/highlights.scm | 1 | ||||
-rw-r--r-- | theme.toml | 3 |
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) @@ -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 |