Class: CodeRay::Scanners::ERB

Inherits:
Scanner show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/scanners/erb.rb

Overview

Scanner for HTML ERB templates.

Constant Summary collapse

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

:nodoc:

/
  <%(?!%)
/x

Constants inherited from Scanner

Scanner::DEFAULT_OPTIONS, Scanner::ScanError

Instance Attribute Summary

Attributes inherited from Scanner

#state

Attributes included from Plugin

#plugin_id

Method Summary

Methods inherited from Scanner

#binary_string, #column, #each, encoding, file_extension, #file_extension, #initialize, #lang, lang, #line, normalize, #reset, #string=, #tokenize, #tokens

Methods included from Plugin

#aliases, #plugin_host, #register_for, #title

Methods included from Enumerable

#as_json, #compact_blank, #exclude?, #excluding, #in_order_of, #including, #index_by, #index_with, #many?, #maximum, #minimum, #pick, #pluck, #sole, #sum

Constructor Details

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