mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Update new query and parser for zig
This commit is contained in:
parent
1e19898703
commit
9b265c9c4c
6 changed files with 225 additions and 228 deletions
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
(function_declaration
|
||||
name: (identifier) @definition.function
|
||||
)
|
||||
|
||||
((type_identifier) @reference
|
||||
(set! reference.kind "type"))
|
||||
|
||||
(assignment_statement
|
||||
name: (identifier) @definition.var
|
||||
)
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
; Scopes
|
||||
[
|
||||
(block)
|
||||
(comptime_block)
|
||||
(defer_block)
|
||||
(suspend_block)
|
||||
(resume_block)
|
||||
(if_expression)
|
||||
(while_expression)
|
||||
(for_expression)
|
||||
(test_expression)
|
||||
(anonymous_array_expr)
|
||||
] @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue