Update tree-sitter-lua and add textobjects for Lua (#3552)

This commit is contained in:
Lennard Hofmann 2022-10-12 15:45:56 +02:00 committed by GitHub
parent 68909dcef4
commit a24fae3b3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 74 additions and 49 deletions

View file

@ -0,0 +1,15 @@
(function_definition
body: (_) @function.inside) @function.around
(function_declaration
body: (_) @function.inside) @function.around
(parameters
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside
(comment)+ @comment.around