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