mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
c++ highlights: don't capture all identifiers with uppercase initials as types
This commit is contained in:
parent
a7dac748ba
commit
3b516c8e2b
1 changed files with 0 additions and 4 deletions
|
|
@ -32,10 +32,6 @@
|
||||||
name: (identifier) @function))
|
name: (identifier) @function))
|
||||||
|
|
||||||
|
|
||||||
((identifier) @type
|
|
||||||
(#match? @type "^[A-Z].*[a-z]")
|
|
||||||
(#not-has-parent? @type function_declarator))
|
|
||||||
|
|
||||||
(namespace_identifier) @namespace
|
(namespace_identifier) @namespace
|
||||||
((namespace_identifier) @type
|
((namespace_identifier) @type
|
||||||
(#match? @type "^[A-Z]"))
|
(#match? @type "^[A-Z]"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue