Class CodeRay::Scanners::HTML
In: lib/coderay/scanners/html.rb
Parent: Scanner

Methods

reset  

Included Modules

Streamable

Constants

KINDS_NOT_LOC = [ :comment, :doctype, :preprocessor, :tag, :attribute_name, :operator, :attribute_value, :delimiter, :content, :plain, :entity, :error
ATTR_NAME = /[\w.:-]+/
ATTR_VALUE_UNQUOTED = ATTR_NAME
TAG_END = /\/?>/
HEX = /[0-9a-fA-F]/
ENTITY = / & (?: \w+ | \# (?: \d+ | x#{HEX}+ ) ) ; /ox
PLAIN_STRING_CONTENT = { "'" => /[^&'>\n]+/, '"' => /[^&">\n]+/, }

Public Instance methods

[Source]

    # File lib/coderay/scanners/html.rb, line 41
41:     def reset
42:       super
43:       @state = :initial
44:     end

[Validate]