Skip to content

Commit 0f2234c

Browse files
committed
Merge commit '0e00c8c'
2 parents d033fd1 + 0e00c8c commit 0f2234c

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

lang-configs/d.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,49 @@
8686
"start": "^\\s*//\\s*dfmt\\s*off",
8787
"end": "^\\s*//\\s*dfmt\\s*on"
8888
}
89-
}
90-
}
89+
},
90+
"onEnterRules": [
91+
{
92+
"beforeText": "^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$",
93+
"afterText": "^\\s*\\*\/$",
94+
"action": { "indent": "indentOutdent", "appendText": " * " }
95+
},
96+
{
97+
"beforeText": "^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$",
98+
"action": { "indent": "none", "appendText": " * " }
99+
},
100+
{
101+
"beforeText": "^(\\t|(\\ \\ ))*\\ \\*(\\ ([^\\*]|\\*(?!\\/))*)?$",
102+
"action": { "indent": "none", "appendText": "* " }
103+
},
104+
{
105+
"beforeText": "^\\s*\\/\\+\\+(?!\\/)([^\\+]|\\+(?!\\/))*$",
106+
"afterText": "^\\s+\\+\/$",
107+
"action": { "indent": "indentOutdent", "appendText": " + " }
108+
},
109+
{
110+
"beforeText": "^\\s*\\/\\+\\+(?!\\/)([^\\+]|\\+(?!\\/))*$",
111+
"action": { "indent": "none", "appendText": " + " }
112+
},
113+
{
114+
"beforeText": "^(\\t|(\\ \\ ))*\\ \\+(\\ ([^\\+]|\\+(?!\\/))*)?$",
115+
"action": { "indent": "none", "appendText": "+ " }
116+
},
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+
}
133+
]
134+
}

0 commit comments

Comments
 (0)