Single line comments



The characters
//
or
\\
start a comment, which terminates immediately before the next new-line character.
The characters
\\
are intended to continue a comment from the previous line (example).


Multi-line and inline comments



The characters
\(
,
\[
,
\{
or
\‘
start a comment, which terminates with the corresponding character
)
,
]
,
}
or
. These comments can be nested.
\(
this_function_call_is_commented_out()

// Nested comment:
\(
// Please balance all parentheses in your source code:
I ch == "(" // )
   ...
) // end of nested comment
)
this_function_call_is_not_commented_out()

[Balancing of all character pairs
()
,
[]
,
{}
and
‘’
is recommended not only for this 11l-style comments to work correctly, but also for correct highlighting of matching parentheses/brackets/braces in the source code editors.]


When commenting a lot of code, you can use extra brackets to notice end of comment better:
\[[[
... a lot of code ...
]]]