Skip to content

Commit

Permalink
Merge pull request #101 from kasecato/#100/delimited_comment
Browse files Browse the repository at this point in the history
Fixed #100 delimited comment /** doen't work
  • Loading branch information
kasecato authored Jul 26, 2020
2 parents cb46f35 + e37dcc1 commit 82c6d80
Show file tree
Hide file tree
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).
Expand Down
4 changes: 1 addition & 3 deletions src/Formatter/FormatterCSharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export class FormatterCSharp {
}
docomment += '\n';
docomment += indent;
if (activateOnEnter) {
docomment += ' */';
}
docomment += ' */';
return docomment;
}

Expand Down
2 changes: 1 addition & 1 deletion src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
}

Expand Down

0 comments on commit 82c6d80

Please sign in to comment.