Skip to content

Commit 5126e3b

Browse files
authored
Merge pull request #243 from taminomara/comment-spaces
Automatically insert space when line breaking in a comment
2 parents eb92f02 + 404579d commit 5126e3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/languageConfiguration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export class LuaLanguageConfiguration implements LanguageConfiguration {
4040
// 第二个参数是默认值(当配置不存在时使用)
4141
if (autoInsertTripleDash) {
4242
this.onEnterRules = [
43+
{
44+
action: { indentAction: IndentAction.None, appendText: "--- " },
45+
beforeText: /^--- /,
46+
},
4347
{
4448
action: { indentAction: IndentAction.None, appendText: "---" },
4549
beforeText: /^---/,

0 commit comments

Comments
 (0)