lib/rouge/lexers/tulip.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/tulip.rb in rouge_ecl-1.0.0

- old
+ new

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