From 6d264a9767cf353fc8d71f45999bec5a40665840 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Tue, 9 Jan 2024 10:29:11 -0500 Subject: [PATCH] Improve auto-commenting of new lines following ObjectScript comments --- src/languageConfiguration.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/languageConfiguration.ts b/src/languageConfiguration.ts index 42a4c801..3dabac08 100644 --- a/src/languageConfiguration.ts +++ b/src/languageConfiguration.ts @@ -24,27 +24,27 @@ export function getLanguageConfiguration(lang: string): LanguageConfiguration { ] : [ { - beforeText: /^\s\/\/\//, + beforeText: /^\s*\/\/\//, action: { indentAction: IndentAction.None, appendText: "/// " }, }, { - beforeText: /^\s\/\/[^/]?/, + beforeText: /^\s+\/\/[^/]?/, action: { indentAction: IndentAction.None, appendText: "// " }, }, { - beforeText: /^\s;;/, + beforeText: /^\s+;;/, action: { indentAction: IndentAction.None, appendText: ";; " }, }, { - beforeText: /^\s;[^;]?/, + beforeText: /^\s+;[^;]?/, action: { indentAction: IndentAction.None, appendText: "; " }, }, { - beforeText: /^\s#;/, + beforeText: /^\s*#;/, action: { indentAction: IndentAction.None, appendText: "#; " }, }, { - beforeText: /^\s##;/, + beforeText: /^\s*##;/, action: { indentAction: IndentAction.None, appendText: "##; " }, }, ],