Comments: Difference between revisions
m
Remove FutureBasic apostrophe single line comment as it's deprecated
(→{{header|Mirah}}: Added MiniScript) |
m (Remove FutureBasic apostrophe single line comment as it's deprecated) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 559:
;(almost - you can still skip into it.) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</syntaxhighlight>
=={{header|Binary Lambda Calculus}}==
BLC has no notion of comments, but since input is considered part of the program, one can always ignore the remainder of input, which can thus be arbitrary. Of course one can have comments in any language that translates to BLC, as discussed in https://rosettacode.org/wiki/Documentation#Binary_Lambda_Calculus
=={{header|Blast}}==
Line 582 ⟶ 586:
Line
Comment *#</syntaxhighlight>
=={{header|Bruijn}}==
Bruijn does not have multi-line comments.
<syntaxhighlight lang="bruijn"># This is a comment</syntaxhighlight>
=={{header|Brlcad}}==
Line 726 ⟶ 734:
<syntaxhighlight lang="lisp">(+ 1 (comment "foo") 3) ;; Throws an exception, because it tries to add nil to an integer
(+ 1 #_"foo" 3) ;; Returns 4</syntaxhighlight>
=={{header|CMake}}==
Line comments use the common <code>#</code> syntax:
<syntaxhighlight lang="cmake"># A single-line comment</syntaxhighlight>
Multi-line comments use a Lua-like square-bracket syntax.
<syntaxhighlight lang="cmake">
#[[A multi-line
comment ]]
with [[nested brackets]]. ]==]</syntaxhighlight>
The number of equals signs (<code>=</code>) in the opening bracket determines the number expected in the closing bracket.
=={{header|COBOL}}==
Line 1,120 ⟶ 1,144:
# and last until the end of the line
</syntaxhighlight>
=={{header|Fennel}}==
<syntaxhighlight lang="fennel">; This is a single-line comment</syntaxhighlight>
=={{header|Fermat}}==
Line 1,241 ⟶ 1,268:
<syntaxhighlight lang="futurebasic">
// Single line comment
▲' Single line comment
rem Single line comment
/* Single line comment */
Line 1,691 ⟶ 1,717:
</syntaxhighlight>
=={{header|Lasso}}==
|