Add method text objects
This commit is contained in:
parent
a522aab9cd
commit
d6f624ebda
|
@ -1,12 +1,19 @@
|
||||||
; Functions {{{
|
; Functions and methods {{{
|
||||||
(function_declaration
|
(function_declaration
|
||||||
parameters: ((_) @parameter.inner)* @parameter.outer
|
parameters: ((_) @parameter.inner)* @parameter.outer
|
||||||
body: (_) @function.inner) @function.outer
|
body: (_) @function.inner) @function.outer
|
||||||
(primitive_declaration
|
(primitive_declaration
|
||||||
parameters: ((_) @parameter.inner)* @parameter.outer) @function.outer
|
parameters: ((_) @parameter.inner)* @parameter.outer) @function.outer
|
||||||
|
|
||||||
|
(method_declaration
|
||||||
|
parameters: ((_) @parameter.inner)* @parameter.outer
|
||||||
|
body: (_) @function.inner) @function.outer
|
||||||
|
|
||||||
(function_call
|
(function_call
|
||||||
arguments: ((_) @call.inner)*) @call.outer
|
arguments: ((_) @call.inner)*) @call.outer
|
||||||
|
|
||||||
|
(method_call
|
||||||
|
arguments: ((_) @call.inner)*) @call.outer
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Control flow {{{
|
; Control flow {{{
|
||||||
|
|
Loading…
Reference in a new issue