Skip to content

@comfit/wasm / Token

Interface: Token

Defined in: types.ts:131

Owned source text with an optional capture style and bracket depth.

Properties

highlight

readonly highlight: string | null

Defined in: types.ts:135

Query capture name, or null for unstyled text.


rainbow

readonly rainbow: number | null

Defined in: types.ts:137

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


text

readonly text: string

Defined in: types.ts:133

Source text without newline separators.