mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Change regexes in C/C++ highlights
This commit is contained in:
parent
a5fc7b13cc
commit
8bc00cf02a
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@
|
|||
(#match? @type "^[A-Z]"))
|
||||
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z\\d_]+$"))
|
||||
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
|
||||
|
||||
(comment) @comment
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
((namespace_identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
((namespace_identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_1-9]*$"))
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
|
||||
(destructor_name
|
||||
name: (_) @function)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue