class Rouge::Lexers::Moonscript
def self.detect?(text)
def self.detect?(text) return true if text.shebang? 'moon' end
def builtins
def builtins return [] unless @function_highlighting @builtins ||= Set.new.tap do |builtins| Rouge::Lexers::Lua.builtins.each do |mod, fns| next if @disabled_modules.include? mod builtins.merge(fns) end end end
def initialize(*)
def initialize(*) super @function_highlighting = bool_option(:function_highlighting) { true } @disabled_modules = list_option(:disabled_modules) end