Classes
PlaintextStateMachineLexer
1
▼
Plaintext lexer - no syntax highlighting, just renders as plain text.
PlaintextStateMachineLexer
1
▼
Plaintext lexer - no syntax highlighting, just renders as plain text.
Methods
tokenize
2
Iterator[Token]
▼
Tokenize plaintext by splitting into whitespace and text chunks.
tokenize
2
Iterator[Token]
▼
def tokenize(self, code: str, config: LexerConfig | None = None) -> Iterator[Token]
Parameters
| Name | Type | Description |
|---|---|---|
code |
— |
The source code to tokenize. |
config |
— |
Optional lexer configuration. Default:None
|
Returns
Iterator[Token]