From 081313aaad43e3704877999b8c3bf3685ab8f995 Mon Sep 17 00:00:00 2001 From: Jean-Michel Bea Date: Tue, 23 Sep 2025 15:38:23 +0100 Subject: [PATCH] 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) ^_____________^ --- queries/ocaml/textobjects.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/queries/ocaml/textobjects.scm b/queries/ocaml/textobjects.scm index 4141c7a3..302767a1 100644 --- a/queries/ocaml/textobjects.scm +++ b/queries/ocaml/textobjects.scm @@ -1,6 +1,8 @@ -(value_definition +((value_definition (let_binding - body: (_) @function.inner)) @function.outer + body: (_) @function.inner)) @_fun_start @_fun_end + ("in")? @_fun_end + (#make-range! "function.outer" @_fun_start @_fun_end)) (method_definition body: (_) @function.inner) @function.outer