Skip to content

Cm5Mode.indent method

Cm5Mode › indent

Unofficial

Returns the number of spaces of indentation that should be used.

Signature:

indent(state: T, textAfter: string, line: string): number

Parameters:

ParameterTypeDescription
stateTThe current parser state.
textAfterstringThe text after the current position.
linestringThe whole text of the line.

Returns: numberThe number of spaces to indent.