lib/rouge/lexers/biml.rb in rouge-2.2.1 vs lib/rouge/lexers/biml.rb in rouge-3.0.0
- old
+ new
@@ -6,11 +6,11 @@
title "BIML"
desc "BIML, Business Intelligence Markup Language"
tag 'biml'
filenames '*.biml'
- def self.analyze_text(text)
- return 1 if text =~ /<\s*Biml\b/
+ def self.detect?(text)
+ return true if text =~ /<\s*Biml\b/
end
prepend :root do
rule %r(<#\@\s*)m, Name::Tag, :directive_tag