Skip to content

Commit

Permalink
Add completion support for multiline comment blocks (#2484)
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica He <jhe@redhat.com>
  • Loading branch information
JessicaJHee committed May 30, 2022
1 parent 01d07b9 commit 6711075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"'"
],
{
"open": "/**",
"open": "/*",
"close": " */",
"notIn": [
"string"
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ function enableJavadocSymbols() {
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
onEnterRules: [
{
// e.g. /** | */
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
// e.g. /** | */ or /* | */
beforeText: /^\s*\/\*\*?(?!\/)([^\*]|\*(?!\/))*$/,
afterText: /^\s*\*\/$/,
action: { indentAction: IndentAction.IndentOutdent, appendText: ' * ' }
},
Expand Down

0 comments on commit 6711075

Please sign in to comment.