comfit.Token
Owned source text with an optional capture style and bracket depth.
Attributes:
- highlight (
str | None) – Capture name, or None for unstyled text. - rainbow (
int | None) – Zero-based bracket depth, or None when no depth was collected. - text (
str) – Source text without newline separators.
comfit.Token.highlight
highlight: str | None
Capture name, or None for unstyled text.
comfit.Token.rainbow
rainbow: int | None
Zero-based bracket depth, or None when no depth was collected.
comfit.Token.text
text: str
Source text without newline separators.