Class: CodeRay::Scanners::RHTML

Inherits:
Scanner
  • Object
show all
Includes:
CodeRay::Streamable
Defined in:
lib/coderay/scanners/rhtml.rb

Overview

RHTML Scanner

Constant Summary collapse

KINDS_NOT_LOC =
HTML::KINDS_NOT_LOC
ERB_RUBY_BLOCK =
/
  <%(?!%)[=-]?
  (?>
    [^\-%]*    # normal*
    (?>        # special
      (?: %(?!>) | -(?!%>) )
      [^\-%]*  # normal*
    )*
  )
  (?: -?%> )?
/x
START_OF_ERB =
/
  <%(?!%)
/x

Constants inherited from Scanner

Scanner::DEFAULT_OPTIONS, Scanner::ScanError

Method Summary

Methods inherited from Scanner

#column, #each, file_extension, #initialize, #line, #marshal_dump, #marshal_load, normify, #reset, streamable?, #streaming?, #string=, #tokenize, #tokens

Methods included from Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for, #title

Constructor Details

This class inherits a constructor from CodeRay::Scanners::Scanner