mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(zig)!: adapt to upstream parser change
This commit is contained in:
parent
0f3332788e
commit
0ec9a8e00c
2 changed files with 16 additions and 23 deletions
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@
|
|||
NEOVIM_VERSION ?= v0.9.5
|
||||
NEOVIM_RUNNER_VERSION ?= v0.10.0
|
||||
|
||||
NVIM_TS_SHA ?= 98460428
|
||||
NVIM_TS_SHA ?= ba921c9a
|
||||
|
||||
FILTER=.*
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue