Files
cppdraft_translate/cppdraft/lex/comment.md
2025-10-25 03:02:53 +03:00

748 B

[lex.comment]

5 Lexical conventions [lex]

5.4 Comments [lex.comment]

1

#

The characters /* start a comment, which terminates with the characters */.

These comments do not nest.

The characters // start a comment, which terminates immediately before the next new-line character.

[Note 1:

The comment characters //, /*, and */ have no special meaning within a // comment and are treated just like other characters.

Similarly, the comment characters // and /* have no special meaning within a/* comment.

— end note]