dotnet / dotnet/csharpstandard

7.5.1 Change description of comments on preprocessor directive lines

Open
#74 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.