diff --git a/lib/rouge/lexers/python.rb b/lib/rouge/lexers/python.rb index 71fc7bc564..2eace86a60 100644 --- a/lib/rouge/lexers/python.rb +++ b/lib/rouge/lexers/python.rb @@ -13,7 +13,7 @@ class Python < RegexLexer mimetypes 'text/x-python', 'application/x-python' def self.detect?(text) - return true if text.shebang?(/pythonw?(?:[23](?:\.\d+)?)?/) + return true if text.shebang?(/pythonw?(?:[3](?:\.\d+)?)?/) end def self.keywords