Skip to content

Commit 4cda52a

Browse files
authored
docs(treesitter): fix language-injection url neovim#35592
1 parent d8a8825 commit 4cda52a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

runtime/doc/news-0.9.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ The following new APIs or features were added.
186186
Additionally |TSNode:range()| now takes an optional {include_bytes} argument.
187187

188188
• Treesitter injection queries now use the format described at
189-
https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection .
189+
https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection .
190190
Support for the previous format will be removed in a future release.
191191

192192
• Added |nvim_get_hl()| for getting highlight group definitions in a format

runtime/doc/treesitter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ TREESITTER LANGUAGE INJECTIONS *treesitter-language-injections*
551551
<
552552

553553
Note the following information is adapted from:
554-
https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection
554+
https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection
555555

556556
Some source files contain code written in multiple different languages.
557557
Examples include:

runtime/lua/vim/treesitter/languagetree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ end
988988

989989
---@private
990990
--- Extract injections according to:
991-
--- https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection
991+
--- https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection
992992
---@param match table<integer,TSNode[]>
993993
---@param metadata vim.treesitter.query.TSMetadata
994994
---@return string?, boolean, Range6[]

0 commit comments

Comments
 (0)