lib/rouge/lexers/mosel.rb in rouge-2.2.1 vs lib/rouge/lexers/mosel.rb in rouge-3.0.0
- old
+ new
@@ -9,12 +9,12 @@
desc "An optimization language used by Fico's Xpress."
# http://www.fico.com/en/products/fico-xpress-optimization-suite
filenames '*.mos'
mimetypes 'text/x-mosel'
-
- def self.analyze_text(text)
- return 1 if text =~ /^\s*(model|package)\s+/
+
+ def self.detect?(text)
+ return true if text =~ /^\s*(model|package)\s+/
end
id = /[a-zA-Z_][a-zA-Z0-9_]*/
############################################################################################################################