mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(cpp): Highlight method with nested qualified_identifier
so that methods like these are correctly highlighted
```cpp
class A {
class B {
void foo();
};
};
void A::B::foo() {
// ^^^
}
```
This only increases the nesting level by one.
AFAIK abritrary nesting is difficult to do with current queries.
But this nesting is a pretty common case
This commit is contained in:
parent
b9c6f3ed45
commit
4990db79a8
1 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,10 @@
|
|||
(function_declarator
|
||||
declarator: (qualified_identifier
|
||||
name: (identifier) @function))
|
||||
(function_declarator
|
||||
declarator: (qualified_identifier
|
||||
name: (qualified_identifier
|
||||
name: (identifier) @function)))
|
||||
((function_declarator
|
||||
declarator: (qualified_identifier
|
||||
name: (identifier) @constructor))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue