Add textobjects module

This commit is contained in:
Stephan Seitz 2020-06-21 20:38:00 +02:00 committed by Thomas Vigouroux
parent c42c38a834
commit 69cabc69be
9 changed files with 216 additions and 27 deletions

View file

@ -0,0 +1,8 @@
;; TODO: supported by official Tree-sitter if (_)* is more than one node
;; Neovim: will only match if (_) is exactly one node
;(function_definition
;body: (compound_statement
;("{" (_)* @function.inner "}"))?) @function.outer
(function_definition
body: (compound_statement) @function.inner) @function.outer