mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
C++: locals template_declaration must define their own scope in which the template arguments are valid
This commit is contained in:
parent
572a4a964b
commit
1301884e97
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@
|
||||||
;template <typename T>
|
;template <typename T>
|
||||||
(type_parameter_declaration
|
(type_parameter_declaration
|
||||||
(type_identifier) @definition.type)
|
(type_identifier) @definition.type)
|
||||||
|
(template_declaration) @scope
|
||||||
|
|
||||||
;; Namespaces
|
;; Namespaces
|
||||||
(namespace_definition
|
(namespace_definition
|
||||||
name: (identifier) @definition.namespace
|
name: (identifier) @definition.namespace
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue