aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-11-29 08:59:36 -0600
committerGitHub <noreply@github.com>2023-11-29 08:59:36 -0600
commit18c1fd8e9d759da6806747910320dce6bea2ab42 (patch)
treecbcc28471b5b67cdfe7f8440b5169dee6901462c /runtime/doc
parentb6e339eb90e1a04f407f381739e46ad3c84f69c5 (diff)
downloadrneovim-18c1fd8e9d759da6806747910320dce6bea2ab42.tar.gz
rneovim-18c1fd8e9d759da6806747910320dce6bea2ab42.tar.bz2
rneovim-18c1fd8e9d759da6806747910320dce6bea2ab42.zip
docs: document TSNode:byte_length() (#26287)
Also update the type annotation of TSNode:id(), which returns a string, not an integer.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/treesitter.txt4
1 files changed, 4 insertions, 0 deletions
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*