Skip to content

Commit 0e00c8c

Browse files
committed
support comment continuation when breaking within line comment
1 parent 0fa43ca commit 0e00c8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lang-configs/d.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,21 @@
114114
"beforeText": "^(\\t|(\\ \\ ))*\\ \\+(\\ ([^\\+]|\\+(?!\\/))*)?$",
115115
"action": { "indent": "none", "appendText": "+ " }
116116
},
117+
{
118+
"beforeText": "(?<!\\\\|\\w:)\/\/\/\\s*\\S",
119+
"afterText": "^(?!\\s*$).+",
120+
"action": {
121+
"indent": "none",
122+
"appendText": "/// "
123+
}
124+
},
125+
{
126+
"beforeText": "(?<!\\\\|\\w:)\/\/(?!\\/)\\s*\\S",
127+
"afterText": "^(?!\\s*$).+",
128+
"action": {
129+
"indent": "none",
130+
"appendText": "// "
131+
}
132+
}
117133
]
118134
}

0 commit comments

Comments
 (0)