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): numberParameters:
| 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: number — The number of spaces to indent.