lib/rouge/lexers/io.rb in rouge-2.2.1 vs lib/rouge/lexers/io.rb in rouge-3.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.analyze_text(text) - return 1 if text.shebang? 'io' + def self.detect?(text) + return true if text.shebang? 'io' end def self.constants @constants ||= Set.new %w(nil false true) end