aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-06-16 19:10:15 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-06-16 19:10:15 +0200
commit3a438bbb441793e95f689fd84bb522e38d8e27bc (patch)
treec4935d3cfbc9271d221a306c52a4eeac3292de8d
parent1b6b32c544d51efcf0bde4aaf32f9dbab1c08865 (diff)
downloadrneovim-3a438bbb441793e95f689fd84bb522e38d8e27bc.tar.gz
rneovim-3a438bbb441793e95f689fd84bb522e38d8e27bc.tar.bz2
rneovim-3a438bbb441793e95f689fd84bb522e38d8e27bc.zip
docs(treesitter): mention query help page
-rw-r--r--runtime/doc/treesitter.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index 6123d7c75a..416ea3a08a 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -165,7 +165,13 @@ tsnode:named_descendant_for_range({start_row}, {start_col}, {end_row}, {end_col}
Query *lua-treesitter-query*
Tree-sitter queries are supported, they are a way to do pattern-matching over
-a tree, using a simple to write lisp-like format.
+a tree, using a simple to write lisp-like format. See
+https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax for more
+information on how to write queries.
+
+Note: The perdicates listed in the web page above differ from those Neovim
+supports. See |lua-treesitter-predicates| for a complete list of predicates
+supported by Neovim.
A `query` consists of one or more patterns. A `pattern` is defined over node
types in the syntax tree. A `match` corresponds to specific elements of the