feat(queries): pull ocaml queries from upstream

This commit is contained in:
Pau Ruiz Safont 2020-09-11 10:21:39 +01:00 committed by Thomas Vigouroux
parent b90e520ccd
commit ddc200768e
3 changed files with 244 additions and 117 deletions

26
queries/ocaml/locals.scm Normal file
View 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