mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Treat "python3" as an alias for "python" (#4026)
Pygments has separate highlighters for "python" (meaning python 2) and "python3" (meaning python 3). As a result, there are lots of files out there (especially ReSTructured text) that contain code blocks whose language is explicitly given as "python3" or "py3". Currently these are unrecognized by linguist. Instead, we should use our python highlighter for them (which works for both python 2 and python 3). References: http://pygments.org/docs/lexers/#pygments.lexers.python.Python3Lexer https://github.com/github/markup/issues/1019 https://github.com/python-trio/async_generator/pull/12
This commit is contained in:
		
				
					committed by
					
						 Colin Seymour
						Colin Seymour
					
				
			
			
				
	
			
			
			
						parent
						
							812797b51d
						
					
				
				
					commit
					2abf488e65
				
			| @@ -3632,6 +3632,7 @@ Python: | |||||||
|   - python3 |   - python3 | ||||||
|   aliases: |   aliases: | ||||||
|   - rusthon |   - rusthon | ||||||
|  |   - python3 | ||||||
|   language_id: 303 |   language_id: 303 | ||||||
| Python console: | Python console: | ||||||
|   type: programming |   type: programming | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user