nvim-treesitter/queries/c/textobjects.scm

9 lines
342 B
Scheme
Raw Normal View History

2020-06-21 20:38:00 +02:00
;; 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