lib/rouge/lexers/tcl.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/tcl.rb in rouge_ecl-1.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.detect?(text)
- return true if text.shebang? 'tclsh'
- return true if text.shebang? 'wish'
- return true if text.shebang? 'jimsh'
+ def self.analyze_text(text)
+ return 1 if text.shebang? 'tclsh'
+ return 1 if text.shebang? 'wish'
+ return 1 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