lib/rouge/lexers/perl.rb in rouge-2.2.1 vs lib/rouge/lexers/perl.rb in rouge-3.0.0
- old
+ new
@@ -10,12 +10,11 @@
aliases 'pl'
filenames '*.pl', '*.pm'
mimetypes 'text/x-perl', 'application/x-perl'
- def self.analyze_text(text)
- return 1 if text.shebang? 'perl'
- return 0.4 if text.include? 'my $'
+ def self.detect?(text)
+ return true if text.shebang? 'perl'
end
keywords = %w(
case continue do else elsif for foreach if last my next our
redo reset then unless until while use print new BEGIN CHECK