Crate biome_css_parser

Source
Expand description

Extremely fast, lossless, and error tolerant CSS Parser.

Modules§

token_set

Macros§

token_set
Utility macro for making a new token set

Structs§

CompletedMarker
A structure signifying a completed node
CssParse
A utility struct for managing the result of a parser job
CssParserOptions
Marker
A structure signifying the start of parsing of a syntax tree node
ParseDiagnostic
A specialized diagnostic for the parser
TokenSet
Trivia
A comment or a whitespace trivia in the source code.

Enums§

ParsedSyntax
Syntax that is either present in the source tree or absent.

Traits§

BumpWithContext
NthToken
Token source that supports inspecting the ‘nth’ token (lookahead)
Parser
SyntaxFeature
A syntax feature that may or may not be supported depending on the file type and parser configuration
ToDiagnostic
TokenSource

Functions§

parse_css
parse_css_with_cache
Parses the provided string as CSS program using the provided node cache.