lib/rouge/lexers/io.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/io.rb in rouge_ecl-1.0.0
- old
+ new
@@ -7,11 +7,11 @@
title "Io"
desc 'The IO programming language (http://iolanguage.com)'
mimetypes 'text/x-iosrc'
filenames '*.io'
- def self.detect?(text)
- return true if text.shebang? 'io'
+ def self.analyze_text(text)
+ return 1 if text.shebang? 'io'
end
def self.constants
@constants ||= Set.new %w(nil false true)
end