captured node spans in the buffer.
@end deffn
- @deffn Predicate match regexp capture-name
+ @deffn Predicate :match regexp capture-name
Matches if the text that @var{capture-name}'s node spans in the buffer
- matches regular expression @var{regexp}. Matching is case-sensitive.
+ matches regular expression @var{regexp}, given as a string literal.
+ Matching is case-sensitive.
@end deffn
- @deffn Predicate pred fn &rest nodes
+ @deffn Predicate :pred fn &rest nodes
Matches if function @var{fn} returns non-@code{nil} when passed each
-node in @var{nodes} as arguments.
+node in @var{nodes} as arguments. The function runs with the current
+buffer set to the buffer of node being queried.
@end deffn
Note that a predicate can only refer to capture names that appear in