From 18217b987f79afa2f389262d7eb155b1c064f97c Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Fri, 14 Aug 2020 16:01:10 +0200 Subject: treesitter: add node:field() to get field children --- runtime/doc/lua.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') 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. -- cgit