Skip to content

Commit 5519178

Browse files
committed
feat(ocaml): include "in" keyword in function.outer
Make sure the fonction.outer includes the in keyword `in`, e.g.: let f x = let g y = 1 in f (g 2) ^_____________^
1 parent 71385f1 commit 5519178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

queries/ocaml/textobjects.scm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(value_definition
2-
(let_binding
3-
body: (_) @function.inner)) @function.outer
1+
((value_definition
2+
(let_binding body: (_) @function.inner)) @_fun_start @_fun_end
3+
("in")? @_fun_end (#make-range! "function.outer" @_fun_start @_fun_end))
44

55
(method_definition
66
body: (_) @function.inner) @function.outer

0 commit comments

Comments
 (0)