Skip to content

Commit cbb9ca8

Browse files
committed
.
1 parent 3419c06 commit cbb9ca8

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

queries/ocaml/textobjects.scm

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,20 @@
2929
(then_clause
3030
(_) @conditional.inner)) @conditional.outer
3131

32-
; TODO: rewrite without make-range!
33-
; (function_expression
34-
; (match_case) @_start @_end
35-
; (match_case)* @_end
36-
; (#make-range! "conditional.inner" @_start @_end)) @conditional.outer
37-
;
38-
; (match_expression
39-
; (match_case) @_start @_end
40-
; (match_case)* @_end
41-
; (#make-range! "conditional.inner" @_start @_end)) @conditional.outer
32+
(function_expression
33+
(match_case)+ @conditional.inner) @conditional.outer
34+
35+
(match_expression
36+
(match_case)+ @conditional.inner) @conditional.outer
4237
(comment) @comment.outer
4338

4439
(parameter) @parameter.outer
4540

4641
(application_expression
4742
argument: (_) @parameter.outer) @call.outer
4843

49-
; TODO: rewrite without make-range!
50-
; (application_expression
51-
; argument: (_) @_start @_end
52-
; argument: (_)* @_end
53-
; (#make-range! "call.inner" @_start @_end))
54-
;
55-
; (parenthesized_expression
56-
; (_) @_start @_end
57-
; (_)? @_end
58-
; (#make-range! "block.inner" @_start @_end)) @block.outer
44+
(application_expression
45+
argument: (_)+ @call.inner)
46+
47+
(parenthesized_expression
48+
_+ @block.inner) @block.outer

0 commit comments

Comments
 (0)