aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/cpp/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/cpp/textobjects.scm')
-rw-r--r--runtime/queries/cpp/textobjects.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/cpp/textobjects.scm b/runtime/queries/cpp/textobjects.scm
new file mode 100644
index 00000000..6e3de1a2
--- /dev/null
+++ b/runtime/queries/cpp/textobjects.scm
@@ -0,0 +1,7 @@
+; inherits: c
+
+(lambda_expression
+ body: (_) @function.inside) @function.around
+
+(class_specifier
+ body: (_) @class.inside) @class.around