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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de