Add text objects to extensions (#21488)
Release Notes: - Adds textobject support to erlang, haskell, lua, php, prisma, proto, toml, and zig
This commit is contained in:
parent
463c99b503
commit
1fccda7b8d
26 changed files with 170 additions and 25 deletions
27
extensions/zig/languages/zig/textobjects.scm
Normal file
27
extensions/zig/languages/zig/textobjects.scm
Normal file
|
@ -0,0 +1,27 @@
|
|||
(function_declaration
|
||||
body: (_
|
||||
"{"
|
||||
(_)* @function.inside
|
||||
"}")) @function.around
|
||||
|
||||
(test_declaration
|
||||
(block
|
||||
"{"
|
||||
(_)* @function.inside
|
||||
"}")) @function.around
|
||||
|
||||
(variable_declaration
|
||||
(struct_declaration
|
||||
"struct"
|
||||
"{"
|
||||
[(_) ","]* @class.inside
|
||||
"}")) @class.around
|
||||
|
||||
(variable_declaration
|
||||
(enum_declaration
|
||||
"enum"
|
||||
"{"
|
||||
(_)* @class.inside
|
||||
"}")) @class.around
|
||||
|
||||
(comment)+ @comment.around
|
Loading…
Add table
Add a link
Reference in a new issue