Add shortdoc for treesit-node-get

This commit is contained in:
Yuan Fu 2023-11-09 20:09:06 -08:00
parent 9c9b87639f
commit 1653389b57
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -3573,6 +3573,9 @@ function signals an error."
"Retrieving a node from another node"
(treesit-node-get
:no-eval (treesit-node-get node '((parent 1) (sibling 1) (text)))
:eg-result-string "#<treesit-node (declaration) in 1-11>")
(treesit-node-parent
:no-eval (treesit-node-parent node)
:eg-result-string "#<treesit-node (declaration) in 1-11>")