mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	docs(treesitter): fix language-injection url #35592
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							d8a8825679
						
					
				
				
					commit
					4cda52a5d1
				
			@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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[]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user