aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-08-14 16:01:10 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-01 08:57:55 +0200
commit18217b987f79afa2f389262d7eb155b1c064f97c (patch)
tree2ed321fefd4c267d0f521e26aaf3ac76aaf3ff66 /runtime
parente123fd0a5dfbddc25cc872c6b4cf075a0c222bbe (diff)
downloadrneovim-18217b987f79afa2f389262d7eb155b1c064f97c.tar.gz
rneovim-18217b987f79afa2f389262d7eb155b1c064f97c.tar.bz2
rneovim-18217b987f79afa2f389262d7eb155b1c064f97c.zip
treesitter: add node:field() to get field children
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lua.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index e948a7c9aa..e692274383 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -628,6 +628,9 @@ tsnode:iter_children() *tsnode:iter_children()*
Returns the child node plus the eventual field name corresponding to
this child node.
+tsnode:field({name}) *tsnode:field()*
+ Returns a table of the nodes corresponding to the {name} field.
+
tsnode:child_count() *tsnode:child_count()*
Get the node's number of children.