diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-27 15:00:49 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-27 15:20:04 +0200 |
| commit | 1301884e97e1c3e4636c9e3e872e8468c2d20d82 (patch) | |
| tree | d501e397576fb586104d3a7251144a36fb59f45c /queries/cpp | |
| parent | configs: attach on unknown parsers too (diff) | |
| download | nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar.gz nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar.bz2 nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar.lz nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar.xz nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.tar.zst nvim-treesitter-1301884e97e1c3e4636c9e3e872e8468c2d20d82.zip | |
C++: locals template_declaration must define their own scope in which the template arguments are valid
Diffstat (limited to 'queries/cpp')
| -rw-r--r-- | queries/cpp/locals.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/cpp/locals.scm b/queries/cpp/locals.scm index d5c2990b8..c625e9ce3 100644 --- a/queries/cpp/locals.scm +++ b/queries/cpp/locals.scm @@ -29,7 +29,8 @@ ;template <typename T> (type_parameter_declaration (type_identifier) @definition.type) - +(template_declaration) @scope + ;; Namespaces (namespace_definition name: (identifier) @definition.namespace |
