lib/rouge/lexers/rust.rb in rouge-2.2.1 vs lib/rouge/lexers/rust.rb in rouge-3.0.0

- old
+ new

@@ -8,11 +8,11 @@ tag 'rust' aliases 'rs' filenames '*.rs' mimetypes 'text/x-rust' - def self.analyze_text(text) - return 1 if text.shebang? 'rustc' + def self.detect?(text) + return true if text.shebang? 'rustc' end def self.keywords @keywords ||= %w( as assert break const copy do drop else enum extern fail false