2023-08-02 21:22:28 +02:00
|
|
|
(Decl (FnProto)
|
2022-10-22 00:32:29 +02:00
|
|
|
(_) @function.inside) @function.around
|
|
|
|
|
|
|
|
(TestDecl (_) @test.inside) @test.around
|
|
|
|
|
|
|
|
; matches all of: struct, enum, union
|
|
|
|
; this unfortunately cannot be split up because
|
|
|
|
; of the way struct "container" types are defined
|
2023-08-02 21:22:28 +02:00
|
|
|
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
|
2022-10-22 00:32:29 +02:00
|
|
|
(_) @class.inside))))) @class.around
|
|
|
|
|
2023-08-02 21:22:28 +02:00
|
|
|
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
|
2022-10-22 00:32:29 +02:00
|
|
|
(_) @class.inside))))) @class.around
|
|
|
|
|
|
|
|
(ParamDeclList
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
[
|
|
|
|
(doc_comment)
|
|
|
|
(line_comment)
|
|
|
|
] @comment.inside
|
|
|
|
(line_comment)+ @comment.around
|
|
|
|
(doc_comment)+ @comment.around
|