summaryrefslogtreecommitdiff
path: root/doc/lispref/parsing.texi
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-12-29 19:52:07 -0800
committerYuan Fu <casouri@gmail.com>2023-12-29 19:52:07 -0800
commit530315287254da2e6b0767ad343fa55f79be8536 (patch)
tree1bbad1fe457859a00d316145846e34919f45a82d /doc/lispref/parsing.texi
parentfa0bb88302b5d9e02190f60cf50ce8a85e849cdf (diff)
downloademacs-530315287254da2e6b0767ad343fa55f79be8536.tar.gz
emacs-530315287254da2e6b0767ad343fa55f79be8536.tar.bz2
emacs-530315287254da2e6b0767ad343fa55f79be8536.zip
Revert "Fix treesit-node-field-name and friends (bug#66674)"
This reverts commit 9874561f39e62c1c9fada6c2e013f93d9ea65729. See bug#67990. Basically our original code is correct, the error is in libtree-sitter, which only manifests in certain cases. https://github.com/tree-sitter/tree-sitter/pull/2104
Diffstat (limited to 'doc/lispref/parsing.texi')
-rw-r--r--doc/lispref/parsing.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index 34eb2826a21..353585f79c7 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -1015,8 +1015,8 @@ This function returns the field name of the @var{n}'th child of
@var{node}. It returns @code{nil} if there is no @var{n}'th child, or
the @var{n}'th child doesn't have a field name.
-Note that @var{n} counts named nodes only, and @var{n} can be
-negative, e.g., @minus{}1 represents the last child.
+Note that @var{n} counts both named and anonymous children, and
+@var{n} can be negative, e.g., @minus{}1 represents the last child.
@end defun
@defun treesit-node-child-count node &optional named