Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/luau/textobjects.scm')
| -rw-r--r-- | runtime/queries/luau/textobjects.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/luau/textobjects.scm b/runtime/queries/luau/textobjects.scm new file mode 100644 index 00000000..c270facc --- /dev/null +++ b/runtime/queries/luau/textobjects.scm @@ -0,0 +1,18 @@ +(fn_stmt + body: (_)? @function.inside) @function.around + +(local_fn_stmt + body: (_)? @function.inside) @function.around + +(anon_fn + body: (_)? @function.inside) @function.around + +(param + ((name) @parameter.inside . ","? @parameter.around) @parameter.around) + +(arglist + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + +(comment) @comment.inside + +(comment)+ @comment.around |