mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(queries): pull ocaml queries from upstream
This commit is contained in:
parent
b90e520ccd
commit
ddc200768e
3 changed files with 244 additions and 117 deletions
26
queries/ocaml/locals.scm
Normal file
26
queries/ocaml/locals.scm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
; 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
|
||||
|
||||
; Definitions
|
||||
;------------
|
||||
|
||||
(value_pattern) @local.definition
|
||||
|
||||
; References
|
||||
;------------
|
||||
|
||||
(value_name) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue