neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f66a60805dd5480982d1b12a263724cfd56b1bfe
parent 8658e8235751f92ce133ec1cd58a7b701340100c
Author: Denys <denys.rybalka@tuta.io>
Date:   Mon,  9 May 2022 18:01:21 +0200

docs: correct description of LanguageTree:contains()

Diffstat:
Mruntime/doc/treesitter.txt | 2--
Mruntime/lua/vim/treesitter/languagetree.lua | 2--
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt @@ -616,8 +616,6 @@ LanguageTree:children({self}) *LanguageTree:children()* LanguageTree:contains({self}, {range}) *LanguageTree:contains()* Determines whether {range} is contained in this language tree - This goes down the tree to recursively check children. - Parameters: ~ {range} A range, that is a `{ start_line, start_col, end_line, end_col }` table. diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua @@ -497,8 +497,6 @@ end --- Determines whether {range} is contained in this language tree --- ---- This goes down the tree to recursively check children. ---- ---@param range A range, that is a `{ start_line, start_col, end_line, end_col }` table. function LanguageTree:contains(range) for _, tree in pairs(self._trees) do