summaryrefslogtreecommitdiff
path: root/doc/lispref/parsing.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-01-13 09:13:24 +0200
committerEli Zaretskii <eliz@gnu.org>2023-01-13 09:13:24 +0200
commitdfb38fb2ee623a78f7e7e15e0b6f11e4768cef48 (patch)
treed4e40e655c01818eb697ca6d5be4c60b5affd3d6 /doc/lispref/parsing.texi
parente8a89a18b69cc8da2ab5ab4dcf1564f0e4517509 (diff)
downloademacs-dfb38fb2ee623a78f7e7e15e0b6f11e4768cef48.tar.gz
emacs-dfb38fb2ee623a78f7e7e15e0b6f11e4768cef48.tar.bz2
emacs-dfb38fb2ee623a78f7e7e15e0b6f11e4768cef48.zip
; Improve documentation of tree-sitter node comparison
* doc/lispref/parsing.texi (Accessing Node Information): * src/treesit.c (Ftreesit_node_eq): Improve documentation of node comparison.
Diffstat (limited to 'doc/lispref/parsing.texi')
-rw-r--r--doc/lispref/parsing.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index ecba833eb8f..e4a25249829 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -929,9 +929,13 @@ Here are some predicates on tree-sitter nodes:
Checks if @var{object} is a tree-sitter syntax node.
@end defun
+@cindex compare tree-sitter syntax nodes
+@cindex tree-sitter nodes, comparing
@defun treesit-node-eq node1 node2
-Checks if @var{node1} and @var{node2} are the same node in a syntax
-tree. This function uses the same equivalence metric as @code{equal}.
+Checks if @var{node1} and @var{node2} refer to the same node in a
+tree-sitter syntax tree. This function uses the same equivalence
+metric as @code{equal}. You can also compare nodes using @code{equal}
+(@pxref{Equality Predicates}).
@end defun
@heading Property information