dotnet / dotnet/csharpstandard
7.5.1 Change description of comments on preprocessor directive lines
Open
type: bug
- Dominant language
- C#
- Stars
- 815
- Forks
- 99
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 16
Description
"A source line containing a #define, #undef, #if, #elif, #else, #endif, #line, or #endregion directive can end with a single-line comment. Delimited comments (the /\* */ style of comments) are not permitted on source lines containing pre-processing directives."
This is misleading in a number of ways, #region should be matched with #endregion, and #pragma should be considered. Where the text is included, it may not be a comment anyway.
Vladimir to consider how best to address.
Contributor guide
Assessment
This issue has not been assessed yet.