Skip to content

Commit

Permalink
feat(c_sharp): treat arrow func as function (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszluka authored Dec 23, 2023
1 parent 20ba6d4 commit 4795812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions queries/c_sharp/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
body: (block . "{" . (_) @_start @_end (_)? @_end . "}"
(#make-range! "function.inner" @_start @_end))) @function.outer

(method_declaration
body: (arrow_expression_clause . (_) @_start @_end (_)? @_end
(#make-range! "function.inner" @_start @_end))) @function.outer

(constructor_declaration
body: (block . "{" . (_) @_start @_end (_)? @_end . "}"
(#make-range! "function.inner" @_start @_end))) @function.outer
Expand Down

0 comments on commit 4795812

Please sign in to comment.