Skip to content

Commit 081313a

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 dfbf959 commit 081313a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

queries/ocaml/textobjects.scm

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

57
(method_definition
68
body: (_) @function.inner) @function.outer

0 commit comments

Comments
 (0)