aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/cpp/textobjects.scm b/queries/cpp/textobjects.scm
index 2a808047a..ed26fcf31 100644
--- a/queries/cpp/textobjects.scm
+++ b/queries/cpp/textobjects.scm
@@ -4,3 +4,12 @@
(for_range_loop
(_)? @loop.inner) @loop.outer
+
+(template_declaration
+ (function_definition) @function.outer) @function.outer.start
+
+(template_declaration
+ (struct_specifier) @class.outer) @class.outer.start
+
+(template_declaration
+ (class_specifier) @class.outer) @class.outer.start