on 0e42e4e help sign in
helix/runtime/queries/zig/textobjects.scm
23 lines 661 B history raw
1(TopLevelDecl (FnProto)
2 (_) @function.inside) @function.around
4(TestDecl (_) @test.inside) @test.around
6; matches all of: struct, enum, union
7; this unfortunately cannot be split up because
8; of the way struct "container" types are defined
9(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
10 (_) @class.inside))))) @class.around
12(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
13 (_) @class.inside))))) @class.around
15(ParamDeclList
16 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
19 (doc_comment)
20 (line_comment)
21] @comment.inside
22(line_comment)+ @comment.around
23(doc_comment)+ @comment.around