mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
Add textobjects module
This commit is contained in:
parent
c42c38a834
commit
69cabc69be
9 changed files with 216 additions and 27 deletions
8
queries/c/textobjects.scm
Normal file
8
queries/c/textobjects.scm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue