From f51fc9d5c6fce3e2abd5844c7fb3313c2a406e3b Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 21 Feb 2025 11:44:10 -0500 Subject: [PATCH] Remove `@constant.variable` --- crates/languages/src/c/highlights.scm | 4 ++-- crates/languages/src/cpp/highlights.scm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/languages/src/c/highlights.scm b/crates/languages/src/c/highlights.scm index e0e8615f5ce256..b80c462ae6d329 100644 --- a/crates/languages/src/c/highlights.scm +++ b/crates/languages/src/c/highlights.scm @@ -108,8 +108,8 @@ (identifier) @variable -((identifier) @constant.variable - (#match? @constant.variable "^_*[A-Z][A-Z\\d_]*$")) +((identifier) @constant + (#match? @constant "^_*[A-Z][A-Z\\d_]*$")) (call_expression function: (identifier) @function) diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scm index 89087f4ef726f7..b05e8cd6f97935 100644 --- a/crates/languages/src/cpp/highlights.scm +++ b/crates/languages/src/cpp/highlights.scm @@ -77,8 +77,8 @@ type :(primitive_type) @type.primitive (attribute name: (identifier) @keyword) -((identifier) @constant.variable - (#match? @constant.variable "^_*[A-Z][A-Z\\d_]*$")) +((identifier) @constant + (#match? @constant "^_*[A-Z][A-Z\\d_]*$")) (statement_identifier) @label (this) @variable.special