lib/rouge/lexers/tulip.rb in rouge-2.2.1 vs lib/rouge/lexers/tulip.rb in rouge-3.0.0
- old
+ new
@@ -7,12 +7,11 @@
filenames '*.tlp'
mimetypes 'text/x-tulip', 'application/x-tulip'
- def self.analyze_text(text)
- return 1 if text.shebang? 'tulip'
- return 0
+ def self.detect?(text)
+ return true if text.shebang? 'tulip'
end
id = /[a-z][\w-]*/i
upper_id = /[A-Z][\w-]*/