Skip to main content

HtmlToken

Type Alias HtmlToken 

Source
pub type HtmlToken = Token<HtmlTokenType>;
Expand description

HTML token type alias.

Aliased Type§

pub struct HtmlToken {
    pub kind: HtmlTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: HtmlTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies