Skip to content

Commit

Permalink
Remove @constant.variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdeviant committed Feb 21, 2025
1 parent d5c4252 commit f51fc9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/languages/src/c/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions crates/languages/src/cpp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f51fc9d

Please sign in to comment.