aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Trew <66286082+jamestrew@users.noreply.github.com>2022-11-10 08:12:28 +0000
committerGitHub <noreply@github.com>2022-11-10 09:12:28 +0100
commit61d152779d9e84b52fc85d24cea51ad04284054d (patch)
treefb722aab5ca804a98626f3bea0e7c8984fbdb622
parent04c73dbedb8a82ed68ff0b0be32c2bee930fe529 (diff)
downloadrneovim-61d152779d9e84b52fc85d24cea51ad04284054d.tar.gz
rneovim-61d152779d9e84b52fc85d24cea51ad04284054d.tar.bz2
rneovim-61d152779d9e84b52fc85d24cea51ad04284054d.zip
docs(treesitter): fix predicate syntax (#21016)
-rw-r--r--runtime/doc/treesitter.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index 31ee7c31c8..992e5ebe69 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -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