aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/news.txt5
-rw-r--r--runtime/doc/treesitter.txt3
2 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 04ae9360a0..7df96874ea 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -50,6 +50,11 @@ The following changes may require adaptations in user config or plugins.
• Unsaved changes are now preserved rather than discarded when |channel-stdio|
is closed.
+• Changes to |vim.treesitter.get_node_text()|:
+ - It now returns `string`, as opposed to `string|string[]|nil`.
+ - The `concat` option has been removed as it was not consistently applied.
+ - Invalid ranges now cause an error instead of returning `nil`.
+
==============================================================================
NEW FEATURES *news-features*
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index dc577a015e..8a0145127c 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -898,7 +898,8 @@ Query:iter_captures({self}, {node}, {source}, {start}, {stop})
• {self}
Return: ~
- (fun(): integer, TSNode, TSMetadata ): capture id, capture node, metadata
+ (fun(): integer, TSNode, TSMetadata): capture id, capture node,
+ metadata
*Query:iter_matches()*
Query:iter_matches({self}, {node}, {source}, {start}, {stop})