diff options
author | Georg Brandl <georg@python.org> | 2011-06-18 11:15:58 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-06-18 11:15:58 +0200 |
commit | 038e5a4bbef241353e86da4dd572dd414844f875 (patch) | |
tree | 09d12c950b4846cc65b654355915416cc3a3ee67 | |
parent | fafafb4af6bf20211ced9bb0904d214e8006db15 (diff) | |
download | pygments-038e5a4bbef241353e86da4dd572dd414844f875.tar.gz |
Match #python2 as shebang (#650).
-rw-r--r-- | pygments/lexers/agile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index f4c85e70..38256eea 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -174,7 +174,7 @@ class PythonLexer(RegexLexer): } def analyse_text(text): - return shebang_matches(text, r'pythonw?(2\.\d)?') + return shebang_matches(text, r'pythonw?(2(\.\d)?)?') class Python3Lexer(RegexLexer): |