Skip to main content

Module token

Module token 

Source
Expand description

All supported tokens, and with comments.

Structs§

Ampersand
Asterisk
AsteriskEqual
At
AtKeyword
AtLBraceVar
BacktickCode
BacktickCodeMeta
BadStr
CSS Syntax <bad-string-token>: a string terminated by a newline or EOF instead of its quote. Not a tokenizer error in CSS — it is a preserved token that raw component-value contexts keep verbatim.
BadStrMeta
Bar
BarBar
BarEqual
CaretEqual
Cdc
-->
Cdo
<!--
Colon
ColonColon
Comma
Comment
Dedent
Dimension
DimensionMeta
DollarEqual
DollarLBraceVar
DollarVar
Dot
DotDotDot
Eof
Equal
EqualEqual
Exclamation
ExclamationEqual
GreaterThan
GreaterThanEqual
Hash
HashLBrace
HashMeta
Ident
IdentMeta
Indent
LBrace
LBracket
LParen
LessThan
LessThanEqual
Linebreak
Minus
Number
NumberMeta
NumberSign
U+0023 #
Percent
Percentage
PercentageMeta
Placeholder
An atomic backtick-delimited template placeholder token (see ParserOptions::template_placeholder), carrying the parsed decimal index and any glued literal suffix.
PlaceholderMeta
Plus
PlusUnderscore
Question
RBrace
RBracket
RParen
Semicolon
Solidus
Str
StrMeta
StrTemplate
StrTemplateMeta
Tilde
TildeEqual
TokenWithSpanData
Unknown
Any single code point that no other token matches (a stray ^, a control character, …). CSS Syntax calls this a <delim-token>: it is not an error at the tokenizer level, and raw component-value contexts (custom property values, unparsable declaration values) preserve it verbatim.
UrlMeta
UrlRaw
UrlTemplate
UrlTemplateMeta

Enums§

CommentKind
TokenData

Type Aliases§

Token
TokenWithSpan
UrlRawMeta