mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-07 04:47:45 +03:00
Update to more up-to-date zig tree-sitter repo (#11980)
Co-authored-by: Khang Nguyen Duy <iceghost@users.noreply.github.com> Co-authored-by: Khang Nguyen Duy <os@ndykhang.net>
This commit is contained in:
parent
fa27ae16a7
commit
5f62c5c24c
5 changed files with 299 additions and 244 deletions
|
@ -1,23 +1,22 @@
|
|||
(Decl (FnProto)
|
||||
(_) @function.inside) @function.around
|
||||
(function_declaration
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(TestDecl (_) @test.inside) @test.around
|
||||
(test_declaration (_) (block) @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
|
||||
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
|
||||
(_) @class.inside))))) @class.around
|
||||
(variable_declaration (identifier) (struct_declaration
|
||||
(_) @class.inside)) @class.around
|
||||
|
||||
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
|
||||
(_) @class.inside))))) @class.around
|
||||
(variable_declaration (identifier) (enum_declaration
|
||||
(_) @class.inside)) @class.around
|
||||
|
||||
(ParamDeclList
|
||||
(variable_declaration (identifier) (enum_declaration
|
||||
(_) @class.inside)) @class.around
|
||||
|
||||
(parameters
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
||||
[
|
||||
(doc_comment)
|
||||
(line_comment)
|
||||
] @comment.inside
|
||||
(line_comment)+ @comment.around
|
||||
(doc_comment)+ @comment.around
|
||||
(comment) @comment.inside
|
||||
(comment)+ @comment.around
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue