-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.help wantedCan be fixed in the public (open source) repo.Can be fixed in the public (open source) repo.verifiedBug has been reproducedBug has been reproduced
Milestone
Description
Bug type: C_Cpp.commentContinuationPatterns
Describe the bug
- OS and Version: Windows 10 (20H2, Build 19042.1526)
- VS Code Version: 1.65.0
- C/C++ Extension Version: v1.8.4
Self introduced comment continuation pattern is recognized. But only for one follow-up line.
E.g.:
"C_Cpp.commentContinuationPatterns": [
"/**",
"/*!",
"//'"
]
Starting with this sequence, it works as expected...:
/*!<enter>
*
But continuing with:
/*!<enter>
* asdf<enter>
The asterisk is getting lost.
This behavior does not occur with the standard pattern of '/**'.
Steps to reproduce
- introduce a custom pattern in settings.json
- use the multi-line comment as described above
Expected behavior
The asterisk should arise in the second follow-up line, too. Just as the default pattern does.
Code sample and logs
/**
* \internal
* <- this example works perfectly
*
*/
void bar(void)
{
}
/*!
* asdf
<- typing <enter> after the 'asdf' above leaves us out missing the asterisk
void foo(void)
{
}
Screenshots
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.help wantedCan be fixed in the public (open source) repo.Can be fixed in the public (open source) repo.verifiedBug has been reproducedBug has been reproduced
Type
Projects
Status
Done