From 18c1fd8e9d759da6806747910320dce6bea2ab42 Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:59:36 -0600 Subject: docs: document TSNode:byte_length() (#26287) Also update the type annotation of TSNode:id(), which returns a string, not an integer. --- runtime/doc/treesitter.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index c65c9c22ba..9bdc6b8d24 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -165,6 +165,10 @@ TSNode:named_descendant_for_range({start_row}, {start_col}, {end_row}, {end_col} TSNode:equal({node}) Check if {node} refers to the same node within the same tree. + *TSNode:byte_length()* +TSNode:byte_length() + Return the number of bytes spanned by this node. + ============================================================================== TREESITTER QUERIES *treesitter-query* -- cgit