Skip to content

Commit 3efe416

Browse files
committed
feat: Add onEnter rule to split a long line closes #78
1 parent bfc4aa6 commit 3efe416

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

language-configuration.json

+18
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,23 @@
3838
["'", "'"],
3939
["*", "*"],
4040
["_", "_"]
41+
],
42+
"onEnterRules": [
43+
{
44+
"beforeText": "^\\s*#.*",
45+
"afterText": ".+$",
46+
"action": {
47+
"indent": "none",
48+
"appendText": "# "
49+
}
50+
},
51+
{
52+
"beforeText": "^\\s*[^\\s].*",
53+
"afterText": "\\s*[^\\s].*$",
54+
"action": {
55+
"indent": "none",
56+
"appendText": "... "
57+
}
58+
}
4159
]
4260
}

0 commit comments

Comments
 (0)