@@ -18,7 +18,7 @@ export function install() {
1818 langConfig . wordPattern = new RegExp ( langConfig . wordPattern ) ;
1919 langConfig . onEnterRules = onEnterRules ;
2020 langConfig . indentationRules = {
21- decreaseIndentPattern : / ^ ( (? ! .* ?\/ \* ) .* \* \/ ) ? \s * [ \ }\] ] .* $ / ,
21+ decreaseIndentPattern : / ^ ( (? ! .* ?\/ \* ) .* \* \/ ) ? \s * [ } \] ] .* $ / ,
2222 increaseIndentPattern : / ^ ( (? ! \/ \/ ) .) * ( \{ [ ^ } " ' ` ] * | \( [ ^ ) " ' ` ] * | \[ [ ^ \] " ' ` ] * ) $ / ,
2323 } ;
2424 delete langConfig . autoClosingPairs ;
@@ -31,18 +31,18 @@ export function install() {
3131const onEnterRules : OnEnterRule [ ] = [
3232 {
3333 // e.g. /** | */
34- beforeText : / ^ \s * \/ \* \* (? ! \/ ) ( [ ^ \ *] | \* (? ! \/ ) ) * $ / ,
34+ beforeText : / ^ \s * \/ \* \* (? ! \/ ) ( [ ^ * ] | \* (? ! \/ ) ) * $ / ,
3535 afterText : / ^ \s * \* \/ $ / ,
3636 action : { indentAction : IndentAction . IndentOutdent , appendText : " * " } ,
3737 } ,
3838 {
3939 // e.g. /** ...|
40- beforeText : / ^ \s * \/ \* \* (? ! \/ ) ( [ ^ \ *] | \* (? ! \/ ) ) * $ / ,
40+ beforeText : / ^ \s * \/ \* \* (? ! \/ ) ( [ ^ * ] | \* (? ! \/ ) ) * $ / ,
4141 action : { indentAction : IndentAction . None , appendText : " * " } ,
4242 } ,
4343 {
4444 // e.g. * ...|
45- beforeText : / ^ ( \t | [ ] ) * [ ] \* ( [ ] ( [ ^ \ *] | \* (? ! \/ ) ) * ) ? $ / ,
45+ beforeText : / ^ ( \t | [ ] ) * [ ] \* ( [ ] ( [ ^ * ] | \* (? ! \/ ) ) * ) ? $ / ,
4646 // oneLineAboveText: /^(\s*(\/\*\*|\*)).*/,
4747 action : { indentAction : IndentAction . None , appendText : "* " } ,
4848 } ,
0 commit comments