ChemPal Documentation - v1.6.0
    Preparing search index...

    A single highlightable span over the raw query string.

    interface HighlightToken {
        kind: HighlightTokenKind;
        text: string;
        start: number;
        end: number;
        depth?: number;
        error?: boolean;
    }
    Index

    Properties

    text: string

    The exact source text of this token (used verbatim so output round-trips).

    start: number

    Inclusive start offset into the raw query.

    end: number

    Exclusive end offset into the raw query.

    depth?: number

    Nesting depth (mod PAREN_PALETTE_SIZE) for a paren token's rainbow color.

    error?: boolean

    True for an unmatched parenthesis or an unterminated quote.