aboutsummaryrefslogtreecommitdiff
path: root/book/src/guides/injection.md
diff options
context:
space:
mode:
authorMichael Davis2024-01-15 06:33:26 +0000
committerGitHub2024-01-15 06:33:26 +0000
commit3011df4f35e43f9f7690b236c85ab54f210c8b3a (patch)
tree494c62b061d19bbfb4c2ce68b3a5b57d7bea7d74 /book/src/guides/injection.md
parent445f7a273a27d74d8168eab7941dcb3479d31ebe (diff)
Bump tree-sitter to latest master (#9317)
* query capture names now return `&str`s rather than `String`s * the `#any-of?` predicate is now supported
Diffstat (limited to 'book/src/guides/injection.md')
-rw-r--r--book/src/guides/injection.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/book/src/guides/injection.md b/book/src/guides/injection.md
index e842ae30..0a1d2c9a 100644
--- a/book/src/guides/injection.md
+++ b/book/src/guides/injection.md
@@ -54,4 +54,7 @@ The first argument (a capture) must be equal to the second argument
The first argument (a capture) must match the regex given in the
second argument (a string).
+- `#any-of?` (standard):
+The first argument (a capture) must be one of the other arguments (strings).
+
[upstream-docs]: http://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection