forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
661 B
Scheme
24 lines
661 B
Scheme
(TopLevelDecl (FnProto)
|
|
(_) @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
|
|
(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
|
|
(_) @class.inside))))) @class.around
|
|
|
|
(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
|
|
(_) @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
|