class Rouge::Lexers::Mason

Constants

COMPONENTS
PERL_BLOCKS
TEXT_BLOCKS

Note: If you add a tag in the lines below, you also need to modify “disambiguate '*.m'” in file disambiguation.rb

Public Class Methods

detect?(text) click to toggle source
# File lib/rouge/lexers/mason.rb, line 17
def self.detect?(text)
  return false if text.doctype?(/((?:ht|x)ml)/)
  return true if text.doctype?
end
new(*) click to toggle source
Calls superclass method
# File lib/rouge/lexers/mason.rb, line 12
def initialize(*)
  super
  @perl = Perl.new
end