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
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.
Bar
BarBar
BarEqual
CaretEqual
Cdc
-->
Cdo
<!--
Colon
ColonColon
Comma
Comment
Dedent
Dimension
DollarEqual
DollarLBraceVar
DollarVar
Dot
DotDotDot
Eof
Equal
EqualEqual
Exclamation
ExclamationEqual
GreaterThan
GreaterThanEqual
Hash
HashLBrace
Ident
Indent
LBrace
LBracket
LParen
LessThan
LessThanEqual
Linebreak
Minus
Number
NumberSign
U+0023 #
Percent
Percentage
Placeholder
An atomic backtick-delimited template placeholder token (see ParserOptions::template_placeholder), carrying the parsed decimal index and any glued literal suffix.
Plus
PlusUnderscore
Question
RBrace
RBracket
RParen
Semicolon
Solidus
Str
StrTemplate
Tilde
TildeEqual
TokenWithSpan
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.
UrlRaw
UrlTemplate

Enums§

CommentKind
Token