diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-08-08 23:26:40 +0200 |
---|---|---|
committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-08-31 13:42:30 +0200 |
commit | e123fd0a5dfbddc25cc872c6b4cf075a0c222bbe (patch) | |
tree | 1daaa005f513667bf056448490c20922872266c9 /runtime | |
parent | 24b5f69a4922e53baa46faf4f5e0b05da42cd2d5 (diff) | |
download | rneovim-e123fd0a5dfbddc25cc872c6b4cf075a0c222bbe.tar.gz rneovim-e123fd0a5dfbddc25cc872c6b4cf075a0c222bbe.tar.bz2 rneovim-e123fd0a5dfbddc25cc872c6b4cf075a0c222bbe.zip |
treesitter: allow to iterate over node children
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/lua.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 8c306135d0..e948a7c9aa 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -622,6 +622,12 @@ Node methods *lua-treesitter-node* tsnode:parent() *tsnode:parent()* Get the node's immediate parent. +tsnode:iter_children() *tsnode:iter_children()* + Iterates over all the direct children of {tsnode}, regardless of + wether they are named or not. + Returns the child node plus the eventual field name corresponding to + this child node. + tsnode:child_count() *tsnode:child_count()* Get the node's number of children. |