mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
maintenance(ocaml): adapt queries to nvim-treesitter
This commit is contained in:
parent
ddc200768e
commit
7be8e6ca5c
3 changed files with 33 additions and 127 deletions
|
|
@ -1,26 +1,22 @@
|
|||
; Scopes
|
||||
;-------
|
||||
|
||||
(let_binding) @local.scope
|
||||
|
||||
(class_binding) @local.scope
|
||||
|
||||
(class_function) @local.scope
|
||||
|
||||
(method_definition) @local.scope
|
||||
|
||||
(fun_expression) @local.scope
|
||||
|
||||
(match_case) @local.scope
|
||||
|
||||
(for_expression) @local.scope
|
||||
[
|
||||
(let_binding)
|
||||
(class_binding)
|
||||
(class_function)
|
||||
(method_definition)
|
||||
(fun_expression)
|
||||
(match_case)
|
||||
(for_expression)
|
||||
] @scope
|
||||
|
||||
; Definitions
|
||||
;------------
|
||||
|
||||
(value_pattern) @local.definition
|
||||
(value_pattern) @definition
|
||||
|
||||
; References
|
||||
;------------
|
||||
|
||||
(value_name) @local.reference
|
||||
(value_name) @reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue