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

- old
+ new

@@ -7,13 +7,13 @@ desc "The Tool Command Language (tcl.tk)" tag 'tcl' filenames '*.tcl' mimetypes 'text/x-tcl', 'text/x-script.tcl', 'application/x-tcl' - def self.analyze_text(text) - return 1 if text.shebang? 'tclsh' - return 1 if text.shebang? 'wish' - return 1 if text.shebang? 'jimsh' + def self.detect?(text) + return true if text.shebang? 'tclsh' + return true if text.shebang? 'wish' + return true if text.shebang? 'jimsh' end KEYWORDS = %w( after apply array break catch continue elseif else error eval expr for foreach global if namespace proc rename return