From 57ec3b7330de3f5a7b37e766a758f13fdf3c0da5 Mon Sep 17 00:00:00 2001 From: Ian Hobson Date: Tue, 1 Oct 2024 03:05:45 +0200 Subject: [PATCH] Add a highlight for the keyword.storage scope to the onedark theme (#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. --- runtime/themes/onedark.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/themes/onedark.toml b/runtime/themes/onedark.toml index 7cdeac0957a8..818b8c94688c 100644 --- a/runtime/themes/onedark.toml +++ b/runtime/themes/onedark.toml @@ -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" }