Skip to content

Cm5Token

Unofficial

A token returned by CodeMirror 5’s tokenizer.

Import:

import type { Cm5Token } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface Cm5Token

Properties

PropertyTypeDescription
endnumberThe character at which the token ends.
startnumberThe character (on the given line) at which the token starts.
stateunknownThe mode's state at the end of this token.
stringstringThe token's string.
typenull | stringThe token type the mode assigned to the token, such as "keyword" or "comment".

Links to this page: