Skip to content

comfit.Line

A source line without its newline separator. Empty lines are included.

Attributes:

  • highlighted (bool) – Whether this line is selected for emphasis.
  • number (int) – One-based source line number.
  • tokens (list[Token]) – Tokens in source order. Their boundaries may differ from syntax node boundaries.

comfit.Line.highlighted

Python
highlighted: bool

Whether this line is selected for emphasis.

comfit.Line.number

Python
number: int

One-based source line number.

comfit.Line.tokens

Python
tokens: list[Token]

Tokens in source order. Their boundaries may differ from syntax node boundaries.