29 lines
748 B
Markdown
29 lines
748 B
Markdown
[lex.comment]
|
|
|
|
# 5 Lexical conventions [[lex]](./#lex)
|
|
|
|
## 5.4 Comments [lex.comment]
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/lex.tex#L512)
|
|
|
|
The characters /* start a comment, which terminates with the
|
|
characters */[.](#1.sentence-1)
|
|
|
|
These comments do not nest[.](#1.sentence-2)
|
|
|
|
The characters // start a comment, which terminates immediately before the
|
|
next new-line character[.](#1.sentence-3)
|
|
|
|
[*Note [1](#note-1)*:
|
|
|
|
The comment characters //, /*,
|
|
and */ have no special meaning within a // comment and
|
|
are treated just like other characters[.](#1.sentence-4)
|
|
|
|
Similarly, the comment
|
|
characters // and /* have no special meaning within a/* comment[.](#1.sentence-5)
|
|
|
|
â *end note*]
|