mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix Erlang and Elixir highlight mappings (#7044)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							7d12ec2abd
						
					
				
				
					commit
					592924a34b
				
			@@ -37,8 +37,7 @@ var (
 | 
			
		||||
		".bat":   {},
 | 
			
		||||
		".dart":  {},
 | 
			
		||||
		".patch": {},
 | 
			
		||||
		".elixir": {},
 | 
			
		||||
		".erlang": {},
 | 
			
		||||
		".erl":   {},
 | 
			
		||||
		".go":    {},
 | 
			
		||||
		".html":  {},
 | 
			
		||||
		".xml":   {},
 | 
			
		||||
@@ -65,6 +64,9 @@ var (
 | 
			
		||||
	// Extensions that are not same as highlight classes.
 | 
			
		||||
	highlightMapping = map[string]string{
 | 
			
		||||
		".txt":     "nohighlight",
 | 
			
		||||
		".escript": "erlang",
 | 
			
		||||
		".ex":      "elixir",
 | 
			
		||||
		".exs":     "elixir",
 | 
			
		||||
	}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user