mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
[Backport release-0.8] docs(treesitter): fix predicate syntax (#21019)
docs(treesitter): fix predicate syntax
(cherry picked from commit 69b1bc72e0
)
Co-authored-by: James Trew <j.trew10@gmail.com>
This commit is contained in:
parent
8e28d8a370
commit
81781810e6
@ -239,7 +239,7 @@ The following predicates are built in:
|
||||
`contains?` *treesitter-predicate-contains?*
|
||||
Match a string against parts of the text corresponding to a node: >
|
||||
((identifier) @foo (#contains? @foo "foo"))
|
||||
((identifier) @foo-bar (#contains @foo-bar "foo" "bar"))
|
||||
((identifier) @foo-bar (#contains? @foo-bar "foo" "bar"))
|
||||
<
|
||||
`any-of?` *treesitter-predicate-any-of?*
|
||||
Match any of the given strings against the text corresponding to
|
||||
|
Loading…
Reference in New Issue
Block a user