From 10f96a8c57b031b521ae8ba5a02413b94ece423b Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 1 Oct 2022 20:29:35 -0700 Subject: 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. --- lisp/treesit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp') 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 -- cgit v1.2.3