Highlight metavariables ($var) inside rust macros.

This commit is contained in:
Blaž Hrastnik 2021-04-14 17:16:45 +09:00
parent b5b650cfe7
commit 305a059f58
2 changed files with 3 additions and 1 deletions

View file

@ -116,6 +116,7 @@
(super) @keyword (super) @keyword
(self) @variable.builtin (self) @variable.builtin
(metavariable) @variable
[ [
(char_literal) (char_literal)

View file

@ -5,7 +5,8 @@
"operator" = "#dbbfef" # lilac "operator" = "#dbbfef" # lilac
# "property" = "#a4a0e8" # lavender # "property" = "#a4a0e8" # lavender
"property" = "#ffffff" # white "property" = "#ffffff" # white
"variable" = "#a4a0e8" # lavender # "variable" = "#a4a0e8" # lavender
"variable" = "#eccdba" # almond
"variable.parameter" = "#a4a0e8" # lavender "variable.parameter" = "#a4a0e8" # lavender
# TODO distinguish type from type.builtin? # TODO distinguish type from type.builtin?
"type" = "#ffffff" # white "type" = "#ffffff" # white