mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(treesitter): mention query help page
This commit is contained in:
parent
1b6b32c544
commit
3a438bbb44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user