aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-23 09:14:40 +0200
committerGitHub <noreply@github.com>2021-08-23 09:14:40 +0200
commit34b60ec894dd0c7347c13916c71c48404dd76421 (patch)
tree773e9dc883b012f1abc8b692f182afc5ffc83500 /runtime
parent4b3ffde20856bd9da8386317490bb1a9fbf34b3a (diff)
parent140084180e82bea3afafa32a33fee37e6e9473ca (diff)
downloadrneovim-34b60ec894dd0c7347c13916c71c48404dd76421.tar.gz
rneovim-34b60ec894dd0c7347c13916c71c48404dd76421.tar.bz2
rneovim-34b60ec894dd0c7347c13916c71c48404dd76421.zip
Merge pull request #15434 from Dkendal/feature-lua-treesitter-sibling
feat(treesitter): add next, prev sibling method
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/treesitter.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index 906e2d716a..379523722e 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -86,6 +86,18 @@ Node methods *lua-treesitter-node*
tsnode:parent() *tsnode:parent()*
Get the node's immediate parent.
+tsnode:next_sibling() *tsnode:next_sibling()*
+ Get the node's next sibling.
+
+tsnode:prev_sibling() *tsnode:prev_sibling()*
+ Get the node's previous sibling.
+
+tsnode:next_named_sibling() *tsnode:next_named_sibling()*
+ Get the node's next named sibling.
+
+tsnode:prev_named_sibling() *tsnode:prev_named_sibling()*
+ Get the node's previous named sibling.
+
tsnode:iter_children() *tsnode:iter_children()*
Iterates over all the direct children of {tsnode}, regardless of
wether they are named or not.