summaryrefslogtreecommitdiff
path: root/test/src/treesit-tests.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-09-24 19:35:11 -0700
committerYuan Fu <casouri@gmail.com>2022-09-24 21:11:30 -0700
commiteba65824364474bde89bdce5f57a772d74a2c409 (patch)
treedb18cd4296be31f085e586923a7666c7100af3c9 /test/src/treesit-tests.el
parentc957832cbf3e87e5a25f7c2bdb70abd959391d98 (diff)
downloademacs-eba65824364474bde89bdce5f57a772d74a2c409.tar.gz
emacs-eba65824364474bde89bdce5f57a772d74a2c409.tar.bz2
emacs-eba65824364474bde89bdce5f57a772d74a2c409.zip
Add the treesit-search functions that supplant the removed ones
The signatures also changed. treesit-traverse-depth-first -> treesit-search-subtree treesit-traverse-breadth-first -> treesit-traverse-forward -> treesit-search-forward treesit-search-forward -> treesit-search-forward-goto treesit-search-beginning/end -> treesit-search-forward-goto -> treesit-induce-sparse-tree * doc/lispref/parsing.texi (Retrieving Node): Add relevant manual sections. * lisp/treesit.el (treesit-search-forward-goto): New function. * src/treesit.c (ts_traverse_sibling_helper) (ts_traverse_match_predicate) (ts_search_dfs) (ts_search_forward) (treesit-search-subtree) (treesit-search-forward) (ts_build_sparse_tree) (Ftreesit_induce_sparse_tree): Add functions. * test/src/treesit-tests.el (treesit-node-supplemental): Add comments.
Diffstat (limited to 'test/src/treesit-tests.el')
-rw-r--r--test/src/treesit-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el
index fbf99ff0874..6fa891a136a 100644
--- a/test/src/treesit-tests.el
+++ b/test/src/treesit-tests.el
@@ -434,12 +434,17 @@ visible_end.)"
;; `treesit-parent-while'
;; `treesit-node-children'
;; `treesit-node-field-name'
+ ;; `treesit-search-forward-goto'
))
;; TODO
;; - Functions in treesit.el
;; - treesit-load-name-override-list
+;; - treesit-search-subtree
;; - treesit-search-forward
+;; - treesit-induce-sparse-tree
+;; - treesit-search-forward
+
(provide 'treesit-tests)
;;; treesit-tests.el ends here