diff options
author | Georg Brandl <georg@python.org> | 2009-05-17 19:05:11 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-17 19:05:11 +0200 |
commit | 76f192dfa9d79799e87f4ff6061cd6d3511545a5 (patch) | |
tree | adfb9b91518752b361713594eacd850557f7721b | |
parent | b83aa850e20b522b6d85e49abae5b0f4c144a990 (diff) | |
download | pygments-76f192dfa9d79799e87f4ff6061cd6d3511545a5.tar.gz |
Match Python 3 with "python3" shebang only.
-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 0a98790f..65dabb40 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -267,7 +267,7 @@ class Python3Lexer(RegexLexer): ] def analyse_text(text): - return shebang_matches(text, r'pythonw?(3\.\d)?') + return shebang_matches(text, r'pythonw?3(\.\d)?') class PythonConsoleLexer(Lexer): |