Skip to content

Commit

Permalink
Fixed #100 delimited comment /** doen't work
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Jul 26, 2020
1 parent cb46f35 commit e37dcc1
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.1.15 (July 26, 2020)

* bug fix - Delimited comment "/**" doen't work. See [#100](https://github.com/kasecato/vscode-docomment/issues/100).

## 0.1.14 (July 20, 2020)

* bug fix - Enter behind <summary>, input too many "///"!. See [#95](https://github.com/kasecato/vscode-docomment/issues/95).
4 changes: 1 addition & 3 deletions src/Formatter/FormatterCSharp.ts
Original file line number Diff line number Diff line change
@@ -39,9 +39,7 @@ export class FormatterCSharp {
}
docomment += '\n';
docomment += indent;
if (activateOnEnter) {
docomment += ' */';
}
docomment += ' */';
return docomment;
}

2 changes: 1 addition & 1 deletion src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ export class SyntacticAnalysisCSharp {
case CommentSyntax.single:
return activeLine.match(/^[ \t]*\/{3}[ \t]*$/) !== null; // FIXME:
case CommentSyntax.delimited:
return activeLine.match(/^[ \t]*\/\*{2}[ \t]*\*\/*[ \t]*$/) !== null; // FIXME:
return activeLine.match(/^[ \t]*\/\*{2}[ \t]*$/) !== null; // FIXME:
}
}

0 comments on commit e37dcc1

Please sign in to comment.