mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 11:57:43 +03:00
Update tree-sitter-lua and add textobjects for Lua (#3552)
This commit is contained in:
parent
68909dcef4
commit
a24fae3b3c
7 changed files with 74 additions and 49 deletions
15
runtime/queries/lua/textobjects.scm
Normal file
15
runtime/queries/lua/textobjects.scm
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue