summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-10-01 20:29:35 -0700
committerYuan Fu <casouri@gmail.com>2022-10-04 13:30:56 -0700
commit10f96a8c57b031b521ae8ba5a02413b94ece423b (patch)
tree5c0c7662489549f2a2913a0e162a735e8cbd7754 /lisp
parent9b5ecffeb00f22ca6663aa14e7807c9886ed1716 (diff)
downloademacs-10f96a8c57b031b521ae8ba5a02413b94ece423b.tar.gz
emacs-10f96a8c57b031b521ae8ba5a02413b94ece423b.tar.bz2
emacs-10f96a8c57b031b521ae8ba5a02413b94ece423b.zip
Improve documentation of tree-sitter search functions
* doc/lispref/parsing.texi (Retrieving Node): Update manual. * src/treesit.c (treesit-search-subtree) (treesit-search-forwardn) (treesit-induce-sparse-tree): Mention case-insensitivity. * lisp/treesit.el (treesit-simple-indent): Mention case-insensitivity.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/treesit.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 4f56a143871..100bf9ac670 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -703,8 +703,8 @@ indentation (target) is in green, current indentation is in red."
Stops at the first node after point that matches PREDICATE.
PREDICATE can be either a regexp that matches against each node's
-type, or a function that takes a node and returns nil/non-nil for
-match/no match.
+type case-insensitively, or a function that takes a node and
+returns nil/non-nil for match/no match.
If a node matches, move to that node and return the node,
otherwise return nil. SIDE controls whether we move to the start