mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
docs(treesitter): fix parameter list for Query:iter_matches
(#34553)
This commit is contained in:
@@ -1524,11 +1524,12 @@ Query:iter_matches({node}, {source}, {start}, {stop}, {opts})
|
|||||||
start depth for each match. This is used to prevent
|
start depth for each match. This is used to prevent
|
||||||
traversing too deep into a tree.
|
traversing too deep into a tree.
|
||||||
• match_limit (integer) Set the maximum number of
|
• match_limit (integer) Set the maximum number of
|
||||||
in-progress matches (Default: 256). all (boolean) When
|
in-progress matches (Default: 256).
|
||||||
`false` (default `true`), the returned table maps capture
|
• all (boolean) When `false` (default `true`), the returned
|
||||||
IDs to a single (last) node instead of the full list of
|
table maps capture IDs to a single (last) node instead of
|
||||||
matching nodes. This option is only for backward
|
the full list of matching nodes. This option is only for
|
||||||
compatibility and will be removed in a future release.
|
backward compatibility and will be removed in a future
|
||||||
|
release.
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
(`fun(): integer, table<integer, TSNode[]>, vim.treesitter.query.TSMetadata, TSTree`)
|
(`fun(): integer, table<integer, TSNode[]>, vim.treesitter.query.TSMetadata, TSTree`)
|
||||||
|
@@ -1056,9 +1056,9 @@ end
|
|||||||
--- - max_start_depth (integer) if non-zero, sets the maximum start depth
|
--- - max_start_depth (integer) if non-zero, sets the maximum start depth
|
||||||
--- for each match. This is used to prevent traversing too deep into a tree.
|
--- for each match. This is used to prevent traversing too deep into a tree.
|
||||||
--- - match_limit (integer) Set the maximum number of in-progress matches (Default: 256).
|
--- - match_limit (integer) Set the maximum number of in-progress matches (Default: 256).
|
||||||
--- - all (boolean) When `false` (default `true`), the returned table maps capture IDs to a single
|
--- - all (boolean) When `false` (default `true`), the returned table maps capture IDs to a single
|
||||||
--- (last) node instead of the full list of matching nodes. This option is only for backward
|
--- (last) node instead of the full list of matching nodes. This option is only for backward
|
||||||
--- compatibility and will be removed in a future release.
|
--- compatibility and will be removed in a future release.
|
||||||
---
|
---
|
||||||
---@return (fun(): integer, table<integer, TSNode[]>, vim.treesitter.query.TSMetadata, TSTree): pattern id, match, metadata, tree
|
---@return (fun(): integer, table<integer, TSNode[]>, vim.treesitter.query.TSMetadata, TSTree): pattern id, match, metadata, tree
|
||||||
function Query:iter_matches(node, source, start, stop, opts)
|
function Query:iter_matches(node, source, start, stop, opts)
|
||||||
|
Reference in New Issue
Block a user