class Rouge::Lexers::Slim
@see slim-lang.org<br>A lexer for the Slim tempalte language
def self.analyze_text(text)
def self.analyze_text(text) return 1 if text.start_with? 'doctype' return 1 if text =~ /(\*)(\{.+?\})/ # Contans a hash splat end
def filters
def filters @filters ||= { 'ruby' => ruby, 'erb' => ERB.new(options), 'javascript' => Javascript.new(options), 'css' => CSS.new(options), 'coffee' => Coffeescript.new(options), 'markdown' => Markdown.new(options), 'scss' => Scss.new(options), 'sass' => Sass.new(options) } end
def html
def html @html ||= HTML.new(options) end
def ruby
def ruby @ruby ||= Ruby.new(options) end