diff options
| author | John Drouhard <john@jmdtech.org> | 2021-09-26 16:40:50 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-27 00:09:17 +0200 |
| commit | e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9 (patch) | |
| tree | 253516a3e6ddead432d319e54a9280f7ce334afd | |
| parent | highlights(rust): Add colon `:` to delimiters (diff) | |
| download | nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar.gz nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar.bz2 nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar.lz nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar.xz nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.tar.zst nvim-treesitter-e643eb5dbd821cea0f48d43db4b2d7a0162dc3f9.zip | |
cpp: highlight template method identifier as a method
| -rw-r--r-- | queries/cpp/highlights.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index a7d387fc7..715a63e60 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -17,6 +17,9 @@ (template_function name: (identifier) @function) +(template_method + name: (field_identifier) @method) + (((field_expression (field_identifier) @method)) @_parent (#has-parent? @_parent template_method function_declarator call_expression)) |
