mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 08:02:38 +00:00
docs: correct description of LanguageTree:contains()
This commit is contained in:
@@ -616,8 +616,6 @@ LanguageTree:children({self}) *LanguageTree:children()*
|
|||||||
LanguageTree:contains({self}, {range}) *LanguageTree:contains()*
|
LanguageTree:contains({self}, {range}) *LanguageTree:contains()*
|
||||||
Determines whether {range} is contained in this language tree
|
Determines whether {range} is contained in this language tree
|
||||||
|
|
||||||
This goes down the tree to recursively check children.
|
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{range} A range, that is a `{ start_line, start_col,
|
{range} A range, that is a `{ start_line, start_col,
|
||||||
end_line, end_col }` table.
|
end_line, end_col }` table.
|
||||||
|
|||||||
@@ -497,8 +497,6 @@ end
|
|||||||
|
|
||||||
--- Determines whether {range} is contained in this language tree
|
--- 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.
|
---@param range A range, that is a `{ start_line, start_col, end_line, end_col }` table.
|
||||||
function LanguageTree:contains(range)
|
function LanguageTree:contains(range)
|
||||||
for _, tree in pairs(self._trees) do
|
for _, tree in pairs(self._trees) do
|
||||||
|
|||||||
Reference in New Issue
Block a user