Add method text objects
This commit is contained in:
parent
a522aab9cd
commit
d6f624ebda
|
@ -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 {{{
|
||||
|
|
Loading…
Reference in a new issue