lib/rouge/lexers/moonscript.rb in rouge-2.2.1 vs lib/rouge/lexers/moonscript.rb in rouge-3.0.0
- old
+ new
@@ -20,11 +20,11 @@
@function_highlighting = bool_option(:function_highlighting) { true }
@disabled_modules = list_option(:disabled_modules)
end
- def self.analyze_text(text)
- return 1 if text.shebang? 'moon'
+ def self.detect?(text)
+ return true if text.shebang? 'moon'
end
def builtins
return [] unless @function_highlighting