summaryrefslogtreecommitdiff
path: root/runtime/queries/matlab/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/matlab/textobjects.scm')
-rw-r--r--runtime/queries/matlab/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/matlab/textobjects.scm b/runtime/queries/matlab/textobjects.scm
new file mode 100644
index 00000000..d94a6653
--- /dev/null
+++ b/runtime/queries/matlab/textobjects.scm
@@ -0,0 +1,9 @@
+(arguments ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+(function_arguments ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(lambda expression: (_) @function.inside) @function.around
+(function_definition (block) @function.inside) @function.around
+
+(class_definition) @class.inside @class.around
+
+(comment) @comment.inside @comment.around