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:

Parameter Type Description
state T The current parser state.
textAfter string The text after the current position.
line string The whole text of the line.

Returns: numberThe number of spaces to indent.