Update runtime/doc/treesitter.txt

Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
This commit is contained in:
Luis Piloto 2020-11-05 09:14:33 +00:00 committed by GitHub
parent d1bed96778
commit 9162cc5417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ vim.treesitter.parse_query({lang}, {query})
Parse {query} as a string. (If the query is in a file, the caller
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}
using `iter_*` methods below. Exposes `info` and `captures` with
additional information about the {query}.