From 2abf488e65c49a71e5298d5f0d697f7c1aea0de8 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Thu, 8 Feb 2018 01:52:21 -0800 Subject: [PATCH] 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 --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 24796ac4..968c2193 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3632,6 +3632,7 @@ Python: - python3 aliases: - rusthon + - python3 language_id: 303 Python console: type: programming