on master help sign in
Highlight metavariables ($var) inside rust macros.
commit305a059f583ba0de3217506d4f89fc462de98cc0 authorBlaž Hrastnik <blaz@mxxn.io> dateWed 14 Apr 2021, 17:16 (6 years ago) parentb5b650c
2 files changed+3−1
runtime/queries/rust/highlights.scm+1 theme.toml+2−1
runtime/queries/rust/highlights.scm+1
@@ -116,6 +116,7 @@
116116(super) @keyword
117117
118118(self) @variable.builtin
119+(metavariable) @variable
119120
120121[
121122(char_literal)
theme.toml+2−1
@@ -5,7 +5,8 @@
55"operator" = "#dbbfef" # lilac
66# "property" = "#a4a0e8" # lavender
77"property" = "#ffffff" # white
8−"variable" = "#a4a0e8" # lavender
8+# "variable" = "#a4a0e8" # lavender
9+"variable" = "#eccdba" # almond
910"variable.parameter" = "#a4a0e8" # lavender
1011# TODO distinguish type from type.builtin?
1112"type" = "#ffffff" # white