ZIm/extensions/zig/languages/zig/textobjects.scm
Conrad Irwin 1fccda7b8d
Add text objects to extensions (#21488)
Release Notes:

- Adds textobject support to erlang, haskell, lua, php, prisma, proto,
toml, and zig
2024-12-03 13:56:25 -07:00

27 lines
467 B
Scheme

(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