diff --git a/src/configuration.ts b/src/configuration.ts index a66eb68..49b5d06 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -148,6 +148,9 @@ export class Configuration { if (line.text.search(/^\s*\/\/\/\s*/) !== -1) { style = '///'; } + if (line.text.search(/^\s*\/\/!\s*/) !== -1) { + style = '//!'; + } } else if (style === '#' && line.text.search(/^\s*#\s*/) !== -1) { indentRegex = /#/; diff --git a/src/rules.ts b/src/rules.ts index 74473b3..1299d21 100644 --- a/src/rules.ts +++ b/src/rules.ts @@ -49,6 +49,10 @@ export class Rules { // e.g. /// ...| beforeText: /^\s*\/\/\//, action: { indentAction: IndentAction.None, appendText: '/// '} + },{ + // e.g. //! ...| + beforeText: /^\s*\/\/!/, + action: { indentAction: IndentAction.None, appendText: '//! '} } ]