docs(treesitter): fix language-injection url #35592

This commit is contained in:
Yochem van Rosmalen
2025-09-01 23:08:08 +02:00
committed by GitHub
parent d8a8825679
commit 4cda52a5d1
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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[]