mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
cpp: fix locals.scm from breaking change in tree-sitter-cpp
This commit is contained in:
parent
d4b6bda44e
commit
536179c8e2
1 changed files with 3 additions and 7 deletions
|
|
@ -16,14 +16,14 @@
|
||||||
(identifier) @definition.var)
|
(identifier) @definition.var)
|
||||||
|
|
||||||
(struct_specifier
|
(struct_specifier
|
||||||
name: (scoped_type_identifier
|
name: (qualified_identifier
|
||||||
name: (type_identifier) @definition.type))
|
name: (type_identifier) @definition.type))
|
||||||
|
|
||||||
(class_specifier
|
(class_specifier
|
||||||
name: (type_identifier) @definition.type)
|
name: (type_identifier) @definition.type)
|
||||||
|
|
||||||
(class_specifier
|
(class_specifier
|
||||||
name: (scoped_type_identifier
|
name: (qualified_identifier
|
||||||
name: (type_identifier) @definition.type))
|
name: (type_identifier) @definition.type))
|
||||||
|
|
||||||
(alias_declaration
|
(alias_declaration
|
||||||
|
|
@ -49,12 +49,8 @@
|
||||||
(template_method
|
(template_method
|
||||||
name: (field_identifier) @definition.method) @scope
|
name: (field_identifier) @definition.method) @scope
|
||||||
|
|
||||||
(template_function
|
|
||||||
name: (scoped_identifier
|
|
||||||
name: (identifier) @definition.function)) @scope
|
|
||||||
|
|
||||||
(function_declarator
|
(function_declarator
|
||||||
declarator: (scoped_identifier
|
declarator: (qualified_identifier
|
||||||
name: (identifier) @definition.function)) @scope
|
name: (identifier) @definition.function)) @scope
|
||||||
|
|
||||||
(field_declaration
|
(field_declaration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue