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:
Khang Nguyen Duy 2025-01-24 03:36:24 +07:00 committed by GitHub
parent fa27ae16a7
commit 5f62c5c24c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 299 additions and 244 deletions

View file

@ -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