Skip to content

Commit cc753a2

Browse files
authored
Improve auto-commenting of new lines following ObjectScript comments (#1298)
1 parent 52bdffd commit cc753a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/languageConfiguration.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ export function getLanguageConfiguration(lang: string): LanguageConfiguration {
2424
]
2525
: [
2626
{
27-
beforeText: /^\s\/\/\//,
27+
beforeText: /^\s*\/\/\//,
2828
action: { indentAction: IndentAction.None, appendText: "/// " },
2929
},
3030
{
31-
beforeText: /^\s\/\/[^/]?/,
31+
beforeText: /^\s+\/\/[^/]?/,
3232
action: { indentAction: IndentAction.None, appendText: "// " },
3333
},
3434
{
35-
beforeText: /^\s;;/,
35+
beforeText: /^\s+;;/,
3636
action: { indentAction: IndentAction.None, appendText: ";; " },
3737
},
3838
{
39-
beforeText: /^\s;[^;]?/,
39+
beforeText: /^\s+;[^;]?/,
4040
action: { indentAction: IndentAction.None, appendText: "; " },
4141
},
4242
{
43-
beforeText: /^\s#;/,
43+
beforeText: /^\s*#;/,
4444
action: { indentAction: IndentAction.None, appendText: "#; " },
4545
},
4646
{
47-
beforeText: /^\s##;/,
47+
beforeText: /^\s*##;/,
4848
action: { indentAction: IndentAction.None, appendText: "##; " },
4949
},
5050
],

0 commit comments

Comments
 (0)