From 2bcd1e9a99d5b1b67205d2cb914c98068104b83f Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 25 Dec 2022 10:38:05 -0800 Subject: [PATCH] ; * doc/lispref/parsing.texi (Retrieving Nodes): Add notice. --- doc/lispref/parsing.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi index 3744cf0b985..4b9cd18dd47 100644 --- a/doc/lispref/parsing.texi +++ b/doc/lispref/parsing.texi @@ -643,6 +643,10 @@ it, or query for information about this node. @defun treesit-node-parent node This function returns the immediate parent of @var{node}. + +If @var{node} is more than 1000 levels deep in a parse tree, the +return value is undefined. Currently it returns @var{nil}, but that +could change in the future. @end defun @defun treesit-node-child node n &optional named -- 2.39.2