lib/rouge/lexers/javascript.rb in rouge-2.2.1 vs lib/rouge/lexers/javascript.rb in rouge-3.0.0
- old
+ new
@@ -16,10 +16,10 @@
aliases 'js'
filenames '*.js'
mimetypes 'application/javascript', 'application/x-javascript',
'text/javascript', 'text/x-javascript'
- def self.analyze_text(text)
+ def self.detect?(text)
return 1 if text.shebang?('node')
return 1 if text.shebang?('jsc')
# TODO: rhino, spidermonkey, etc
end