mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
Update runtime/doc/treesitter.txt
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
This commit is contained in:
@@ -176,7 +176,7 @@ vim.treesitter.parse_query({lang}, {query})
|
|||||||
Parse {query} as a string. (If the query is in a file, the caller
|
Parse {query} as a string. (If the query is in a file, the caller
|
||||||
should read the contents into a string before calling).
|
should read the contents into a string before calling).
|
||||||
|
|
||||||
Returns a |lua-treesitter-query| Query object which can be used to
|
Returns a `Query` (see |lua-treesitter-query|) object which can be used to
|
||||||
search nodes in the syntax tree for the patterns defined in {query}
|
search nodes in the syntax tree for the patterns defined in {query}
|
||||||
using `iter_*` methods below. Exposes `info` and `captures` with
|
using `iter_*` methods below. Exposes `info` and `captures` with
|
||||||
additional information about the {query}.
|
additional information about the {query}.
|
||||||
|
Reference in New Issue
Block a user