Classes
CssStateMachineLexer
1
▼
CSS lexer with selector, property, and value parsing.
Handles CSS3 syntax including at-rules, cust…
CssStateMachineLexer
1
▼
CSS lexer with selector, property, and value parsing.
Handles CSS3 syntax including at-rules, custom properties, and functions.
Methods
tokenize
2
Iterator[Token]
▼
tokenize
2
Iterator[Token]
▼
def tokenize(self, code: str, config: LexerConfig | None = None) -> Iterator[Token]
Parameters
| Name | Type | Description |
|---|---|---|
code |
— |
|
config |
— |
Default:None
|
Returns
Iterator[Token]