feat(zig)!: adapt to upstream parser change

This commit is contained in:
Amaan Qureshi 2024-08-30 01:01:04 -04:00
parent 0f3332788e
commit 0ec9a8e00c
2 changed files with 16 additions and 23 deletions

View file

@ -3,7 +3,7 @@
NEOVIM_VERSION ?= v0.9.5
NEOVIM_RUNNER_VERSION ?= v0.10.0
NVIM_TS_SHA ?= 98460428
NVIM_TS_SHA ?= ba921c9a
FILTER=.*

View file

@ -1,32 +1,25 @@
([
(LoopTypeExpr)
(IfTypeExpr)
(TestDecl)
(SwitchExpr)
(for_statement)
(while_statement)
(if_expression)
(if_type_expression)
(test_declaration)
(comptime_declaration)
(using_namespace_declaration)
] @context)
(Decl
(FnProto (_))
(Block (_) @context.end)
(function_declaration
(block (_) @context.end)
) @context
(VarDecl
(ErrorUnionExpr (_) @context.end)
(variable_declaration
type: (_)? @context.end
) @context
(IfStatement
(BlockExpr (_) @context.end)
(if_statement
(block (_) @context.end)
) @context
(LoopStatement
(_ (BlockExpr (_) @context.end))
(switch_expression
"{" @context.end
) @context
(LoopExpr
(_ (Block (_) @context.end))
) @context
(SwitchProng
(AssignExpr) @context.end
) @context