Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IndentationRule

Describes indentation rules for a language.

Hierarchy

  • IndentationRule

Index

Properties

decreaseIndentPattern

decreaseIndentPattern: RegExp

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

increaseIndentPattern

increaseIndentPattern: RegExp

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

Optional indentNextLinePattern

indentNextLinePattern: RegExp | null

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

Optional unIndentedLinePattern

unIndentedLinePattern: RegExp | null

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

Generated using TypeDoc