Skip to content

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

Python
highlight: str | None

Capture name, or None for unstyled text.

comfit.Token.rainbow

Python
rainbow: int | None

Zero-based bracket depth, or None when no depth was collected.

comfit.Token.text

Python
text: str

Source text without newline separators.