Interface IndentationRule
Expand description
interface IndentationRule {
decreaseIndentPattern: RegExp;
increaseIndentPattern: RegExp;
indentNextLinePattern?: RegExp;
unIndentedLinePattern?: RegExp;
}Properties§
§§§§
decrease Indent Pattern: RegExpIf a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
increase Indent Pattern: RegExpIf a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
indent Next Line Pattern?: RegExpIf a line matches this pattern, then only the next line after it should be indented once.
un Indented Line Pattern?: RegExpIf a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.
Describes indentation rules for a language.