Skip to content

Commit

Permalink
Highlight metavariables ($var) inside rust macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Apr 14, 2021
1 parent b5b650c commit 305a059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
(super) @keyword

(self) @variable.builtin
(metavariable) @variable

[
(char_literal)
Expand Down
3 changes: 2 additions & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 305a059

Please sign in to comment.