Skip to content

Commit

Permalink
Add a highlight for the keyword.storage scope to the onedark theme (#…
Browse files Browse the repository at this point in the history
…11802)

Rust highlight queries make use of keyword.storage for keywords like
`struct`, `enum`, and also for modifiers like `mut` and `ref`.

Using a color that's different to the one used for
`"variable.parameter"` (red) improves differentiation for mutable
function arguments.
  • Loading branch information
irh authored Oct 1, 2024
1 parent 083bb01 commit 57ec3b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/themes/onedark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"keyword.control" = { fg = "purple" }
"keyword.control.import" = { fg = "red" }
"keyword.directive" = { fg = "purple" }
"keyword.storage" = { fg = "purple" }
"label" = { fg = "purple" }
"namespace" = { fg = "blue" }
"operator" = { fg = "purple" }
Expand Down

0 comments on commit 57ec3b7

Please sign in to comment.