aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp/highlights.scm
diff options
context:
space:
mode:
authorJohn Drouhard <john@jmdtech.org>2021-09-26 16:40:50 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-09-27 00:09:17 +0200
commite643eb5dbd821cea0f48d43db4b2d7a0162dc3f9 (patch)
tree253516a3e6ddead432d319e54a9280f7ce334afd /queries/cpp/highlights.scm
parenthighlights(rust): Add colon `:` to delimiters (diff)
downloadnvim-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
Diffstat (limited to 'queries/cpp/highlights.scm')
-rw-r--r--queries/cpp/highlights.scm3
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))