Skip to content

Commit 5d63945

Browse files
authored
fix(c_sharp): @function.outer doesn't match on empty body of method_declaration (#799)
if @function.inner does not allow empty body, one cannot jump by @function.outer to it
1 parent ea79012 commit 5d63945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queries/c_sharp/textobjects.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
body: (block
3838
.
3939
"{"
40-
_+ @function.inner
40+
_* @function.inner
4141
"}")) @function.outer
4242

4343
(method_declaration
@@ -115,7 +115,7 @@
115115
body: (block
116116
.
117117
"{"
118-
_+ @function.inner
118+
_* @function.inner
119119
"}")) @function.outer
120120

121121
; constructor without body(metadata)

0 commit comments

Comments
 (0)