tree-sitter-tiger/queries/textobjects.scm

17 lines
379 B
Scheme
Raw Normal View History

2022-06-04 10:32:13 +02:00
; Functions {{{
(function_declaration
2022-06-04 10:37:59 +02:00
parameters: ((_) @parameter.inner)* @parameter.outer
2022-06-04 10:32:13 +02:00
body: (_) @function.inner) @function.outer
2022-06-04 10:37:59 +02:00
(primitive_declaration
parameters: ((_) @parameter.inner)* @parameter.outer) @function.outer
2022-06-04 10:32:35 +02:00
(function_call
arguments: ((_) @call.inner)*) @call.outer
2022-06-04 10:32:13 +02:00
; }}}
; Misc {{{
(comment) @comment.outer
; }}}
; vim: sw=2 foldmethod=marker