mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(treesitter): correctly parse queries with combined injections
This commit is contained in:
		 Riley Bruins
					Riley Bruins
				
			
				
					committed by
					
						 Christian Clason
						Christian Clason
					
				
			
			
				
	
			
			
			 Christian Clason
						Christian Clason
					
				
			
						parent
						
							8c4c9ca192
						
					
				
				
					commit
					9b25c68db2
				
			| @@ -59,7 +59,7 @@ function Query:_process_patterns() | |||||||
|       if is_directive(pred_name) then |       if is_directive(pred_name) then | ||||||
|         table.insert(directives, pattern) |         table.insert(directives, pattern) | ||||||
|         if vim.deep_equal(pattern, { 'set!', 'injection.combined' }) then |         if vim.deep_equal(pattern, { 'set!', 'injection.combined' }) then | ||||||
|           self._has_combined_injections = true |           self.has_combined_injections = true | ||||||
|         end |         end | ||||||
|         if vim.deep_equal(pattern, { 'set!', 'conceal_lines', '' }) then |         if vim.deep_equal(pattern, { 'set!', 'conceal_lines', '' }) then | ||||||
|           self.has_conceal_line = true |           self.has_conceal_line = true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user