Function: treesit-thing-next

treesit-thing-next is a byte-compiled function defined in treesit.el.gz.

Signature

(treesit-thing-next POS THING)

Documentation

Return the next THING at POS.

The returned node, if non-nil, must be after POS, i.e., its start >= POS.

THING should be a thing defined in treesit-thing-settings, or a predicate as described in treesit-thing-settings.

Other relevant functions are documented in the treesit group.

View in manual

Probably introduced at or before Emacs version 30.1.

Shortdoc

;; treesit
(treesit-thing-next 3943 'sexp)

Source Code

;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defun treesit-thing-next (pos thing)
  "Return the next THING at POS.

The returned node, if non-nil, must be after POS, i.e., its
start >= POS.

THING should be a thing defined in `treesit-thing-settings', or a
predicate as described in `treesit-thing-settings'."
  (treesit--thing-sibling pos thing nil))