Skip to content

Commit f3ac8ef

Browse files
committed
fix(roc): add inner comment queries
1 parent c3c480f commit f3ac8ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

queries/roc/textobjects.scm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020

2121
(function_call_expr
2222
.
23-
(_)
24-
((_) @parameter.inner) @parameter.outer)
23+
(_) @parameter.inner @parameter.outer)
2524

2625
[
2726
(annotation_type_def)
@@ -31,6 +30,10 @@
3130

3231
(apply_type_arg) @parameter.inner
3332

33+
((#offset! line_comment 0 1 0 -1)) @comment.inner
34+
3435
(line_comment) @comment.outer
3536

37+
((#offset! doc_comment 0 1 0 -2)) @comment.inner
38+
3639
(doc_comment) @comment.outer

0 commit comments

Comments
 (0)