From 2c5288dafb88ae2a12d3589b79a525932f48b6b3 Mon Sep 17 00:00:00 2001 From: Álan Crístoffer Date: Fri, 23 Jun 2023 00:19:40 +0200 Subject: Replace MATLAB grammar (#7388) --- runtime/queries/matlab/textobjects.scm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 runtime/queries/matlab/textobjects.scm (limited to 'runtime/queries/matlab/textobjects.scm') 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 -- cgit v1.2.3-70-g09d2