Module scanner

Source
Expand description

Vue template tokenization. The canonical parsing strategy should adhere to the spec below. https://html.spec.whatwg.org/multipage/parsing.html#tokenization

Structs§

Attribute
AttributeValue
ScanOption
ScanOption defined a list of methods used in scanning
Scanner
Tag
Tag is used only for start tag since end tag is bare
Tokens

Enums§

TextMode
TextMode represents different text scanning strategy. e.g. Scanning in script/textarea/div are different.
Token
html token definition is tailored for convenience. https://html.spec.whatwg.org/multipage/parsing.html#tokenization

Traits§

FlagCDataNs
A scanner needs to implement this trait to know if it is_in_html_namespace. A parser tells scanner the current namespace through the trait’s method.
Locatable
This trait produces a compiler’s current position and selects a range.
TokenSource