mirror of https://github.com/helix-editor/helix
Update tree-sitter-zig (#7803)
parent
325692a154
commit
bc737404e8
|
@ -1039,7 +1039,7 @@ args = { console = "internalConsole", attachCommands = [ "platform select remote
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "zig"
|
name = "zig"
|
||||||
source = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "8d3224c3bd0890fe08358886ebf54fca2ed448a6" }
|
source = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "0d08703e4c3f426ec61695d7617415fff97029bd" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "prolog"
|
name = "prolog"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
field_access: (IDENTIFIER)
|
field_access: (IDENTIFIER)
|
||||||
parameter: (IDENTIFIER)
|
parameter: (IDENTIFIER)
|
||||||
] @type
|
] @type
|
||||||
(#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$")
|
(#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)+$")
|
||||||
)
|
)
|
||||||
|
|
||||||
;; assume camelCase is a function
|
;; assume camelCase is a function
|
||||||
|
@ -122,8 +122,11 @@ field_constant: (IDENTIFIER) @constant
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
"struct"
|
|
||||||
"enum"
|
"enum"
|
||||||
|
] @type.enum
|
||||||
|
|
||||||
|
[
|
||||||
|
"struct"
|
||||||
"union"
|
"union"
|
||||||
"packed"
|
"packed"
|
||||||
"opaque"
|
"opaque"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(TopLevelDecl (FnProto)
|
(Decl (FnProto)
|
||||||
(_) @function.inside) @function.around
|
(_) @function.inside) @function.around
|
||||||
|
|
||||||
(TestDecl (_) @test.inside) @test.around
|
(TestDecl (_) @test.inside) @test.around
|
||||||
|
@ -6,10 +6,10 @@
|
||||||
; matches all of: struct, enum, union
|
; matches all of: struct, enum, union
|
||||||
; this unfortunately cannot be split up because
|
; this unfortunately cannot be split up because
|
||||||
; of the way struct "container" types are defined
|
; of the way struct "container" types are defined
|
||||||
(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
|
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ContainerDecl
|
||||||
(_) @class.inside))))) @class.around
|
(_) @class.inside))))) @class.around
|
||||||
|
|
||||||
(TopLevelDecl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
|
(Decl (VarDecl (ErrorUnionExpr (SuffixExpr (ErrorSetDecl
|
||||||
(_) @class.inside))))) @class.around
|
(_) @class.inside))))) @class.around
|
||||||
|
|
||||||
(ParamDeclList
|
(ParamDeclList
|
||||||
|
|
Loading…
Reference in New Issue