commit 4cda52a5d1918d14541e95cadcbc1181b43eafbb
parent d8a88256794feb3fb1a63bd586d80068c4c801f4
Author: Yochem van Rosmalen <git@yochem.nl>
Date: Mon, 1 Sep 2025 23:08:08 +0200
docs(treesitter): fix language-injection url #35592
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtime/doc/news-0.9.txt b/runtime/doc/news-0.9.txt
@@ -186,7 +186,7 @@ The following new APIs or features were added.
Additionally |TSNode:range()| now takes an optional {include_bytes} argument.
• Treesitter injection queries now use the format described at
- https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection .
+ https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection .
Support for the previous format will be removed in a future release.
• Added |nvim_get_hl()| for getting highlight group definitions in a format
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
@@ -551,7 +551,7 @@ TREESITTER LANGUAGE INJECTIONS *treesitter-language-injections*
<
Note the following information is adapted from:
- https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection
+https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection
Some source files contain code written in multiple different languages.
Examples include:
diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua
@@ -988,7 +988,7 @@ end
---@private
--- Extract injections according to:
---- https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection
+--- https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection
---@param match table<integer,TSNode[]>
---@param metadata vim.treesitter.query.TSMetadata
---@return string?, boolean, Range6[]