mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(cpp): avoid overwriting C CONSTANTS
This commit is contained in:
parent
054c2a5747
commit
b79e400a51
1 changed files with 2 additions and 2 deletions
|
|
@ -39,12 +39,12 @@
|
|||
|
||||
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z]")
|
||||
(#match? @type "^[A-Z][a-z]")
|
||||
(#not-has-parent? @type function_declarator))
|
||||
|
||||
(namespace_identifier) @namespace
|
||||
((namespace_identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
(#match? @type "^[A-Z].*[a-z]"))
|
||||
((namespace_identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
(namespace_definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue