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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈