lib/rouge/lexers/lua.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/lua.rb in rouge_ecl-1.0.0
- old
+ new
@@ -17,11 +17,11 @@
@function_highlighting = opts.delete(:function_highlighting) { true }
@disabled_modules = opts.delete(:disabled_modules) { [] }
super(opts)
end
- def self.detect?(text)
- return true if text.shebang? 'lua'
+ def self.analyze_text(text)
+ return 1 if text.shebang? 'lua'
end
def self.builtins
load Pathname.new(__FILE__).dirname.join('lua/builtins.rb')
self.builtins