Skip to content

Commit 6711075

Browse files
authored
Add completion support for multiline comment blocks (#2484)
Signed-off-by: Jessica He <[email protected]>
1 parent 01d07b9 commit 6711075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"'"
4747
],
4848
{
49-
"open": "/**",
49+
"open": "/*",
5050
"close": " */",
5151
"notIn": [
5252
"string"

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ function enableJavadocSymbols() {
679679
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
680680
onEnterRules: [
681681
{
682-
// e.g. /** | */
683-
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
682+
// e.g. /** | */ or /* | */
683+
beforeText: /^\s*\/\*\*?(?!\/)([^\*]|\*(?!\/))*$/,
684684
afterText: /^\s*\*\/$/,
685685
action: { indentAction: IndentAction.IndentOutdent, appendText: ' * ' }
686686
},

0 commit comments

Comments
 (0)