on master help sign in
Highlight metavariables ($var) inside rust macros.
305a059Blaž Hrastnik
runtime/queries/rust/highlights.scm+1
@@ -116,6 +116,7 @@
116(super) @keyword
116(super) @keyword
117
117
118(self) @variable.builtin
118(self) @variable.builtin
119+(metavariable) @variable
119
120
120[
121[
121(char_literal)
122(char_literal)
theme.toml+2−1
@@ -5,7 +5,8 @@
5"operator" = "#dbbfef" # lilac
5"operator" = "#dbbfef" # lilac
6# "property" = "#a4a0e8" # lavender
6# "property" = "#a4a0e8" # lavender
7"property" = "#ffffff" # white
7"property" = "#ffffff" # white
8−"variable" = "#a4a0e8" # lavender
8+# "variable" = "#a4a0e8" # lavender
9+"variable" = "#eccdba" # almond
9"variable.parameter" = "#a4a0e8" # lavender
10"variable.parameter" = "#a4a0e8" # lavender
10# TODO distinguish type from type.builtin?
11# TODO distinguish type from type.builtin?
11"type" = "#ffffff" # white
12"type" = "#ffffff" # white