Cm5Token
Unofficial
A token returned by CodeMirror 5’s tokenizer.
Import:
import type { Cm5Token } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface Cm5TokenProperties
| Property | Type | Description | |
|---|---|---|---|
| end | number | The character at which the token ends. | |
| start | number | The character (on the given line) at which the token starts. | |
| state | unknown | The mode's state at the end of this token. | |
| string | string | The token's string. | |
| type | null | string | The token type the mode assigned to the token, such as "keyword" or "comment". |
Links to this page: