Add method text objects

This commit is contained in:
Bruno BELANYI 2022-06-04 22:02:34 +02:00
parent a522aab9cd
commit d6f624ebda

View file

@ -1,12 +1,19 @@
; Functions {{{
; Functions and methods {{{
(function_declaration
parameters: ((_) @parameter.inner)* @parameter.outer
body: (_) @function.inner) @function.outer
(primitive_declaration
parameters: ((_) @parameter.inner)* @parameter.outer) @function.outer
(method_declaration
parameters: ((_) @parameter.inner)* @parameter.outer
body: (_) @function.inner) @function.outer
(function_call
arguments: ((_) @call.inner)*) @call.outer
(method_call
arguments: ((_) @call.inner)*) @call.outer
; }}}
; Control flow {{{