diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index 1a08126b55d2084e39611a9e73cde83b6cfc9999..82008d701536177cbe7cab8d6fc6c82e0568e944 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -57,6 +57,9 @@ ((identifier) @constant (#match? @constant "^_*[A-Z][A-Z\\d_]*$")) +; Ensure enum variants are highlighted correctly regardless of naming convention +(enum_variant name: (identifier) @type) + [ "(" ")"