lib/rouge/lexers/python.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/python.rb in rouge_ecl-1.0.0
- old
+ new
@@ -8,19 +8,18 @@
tag 'python'
aliases 'py'
filenames '*.py', '*.pyw', '*.sc', 'SConstruct', 'SConscript', '*.tac'
mimetypes 'text/x-python', 'application/x-python'
- def self.detect?(text)
- return true if text.shebang?(/pythonw?(3|2(\.\d)?)?/)
+ def self.analyze_text(text)
+ return 1 if text.shebang?(/pythonw?(3|2(\.\d)?)?/)
end
def self.keywords
@keywords ||= %w(
assert break continue del elif else except exec
finally for global if lambda pass print raise
return try while yield as with from import yield
- async await
)
end
def self.builtins
@builtins ||= %w(