IndentationRule interface
Describes indentation rules for a language.
Properties
decrease |
If a line matches this pattern, then all the lines after it should be unindendented once (until another rule matches). |
increase |
If a line matches this pattern, then all the lines after it should be indented once (until another rule matches). |
indent |
If a line matches this pattern, then only the next line after it should be indented once. |
un |
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