Szerkesztés

Megosztás a következőn keresztül:


IndentationRule interface

Describes indentation rules for a language.

Properties

decreaseIndentPattern

If a line matches this pattern, then all the lines after it should be unindendented once (until another rule matches).

increaseIndentPattern

If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).

indentNextLinePattern

If a line matches this pattern, then only the next line after it should be indented once.

unIndentedLinePattern

If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.

Property Details

decreaseIndentPattern

If a line matches this pattern, then all the lines after it should be unindendented once (until another rule matches).

decreaseIndentPattern: RegExp

Property Value

RegExp

increaseIndentPattern

If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).

increaseIndentPattern: RegExp

Property Value

RegExp

indentNextLinePattern

If a line matches this pattern, then only the next line after it should be indented once.

indentNextLinePattern?: RegExp

Property Value

RegExp

unIndentedLinePattern

If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.

unIndentedLinePattern?: RegExp

Property Value

RegExp