ref: 5230104852a7af729105f2b13f1de78d95c3f9c8
parent: 55be77be69fb2392404203ab6735e05a9fcea067
author: anderoonies <andrewbayer2016@u.northwestern.edu>
date: Fri Oct 16 15:19:23 EDT 2020
documentation for block comments
--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -47,13 +47,22 @@
.Em always
ignores comments and their contents.
.Pp
-There are two syntaxes for comments. The most common is that anything that follows a semicolon
+There are three syntaxes for comments. The most common is that anything that follows a semicolon
.Ql \&;
not inside a string, is a comment until the end of the line.
-The other is that lines beginning with a
+The second is a block comment, beginning with
+.Ql /*
+and ending with
+.Ql */ .
+It can be split across multiple lines, or occur in the middle of an expression:
+.Bd -literal -offset indent
+X = /* the value of x
+ should be 3 */ 3
+.Ed
+The third is that lines beginning with a
.Ql *
(not even spaces before it) are ignored.
-This second syntax is deprecated (will be removed in a future version) and should be replaced with the first one.
+This third syntax is deprecated (will be removed in a future version) and should be replaced with either of the first two.
.Pp
Sometimes lines can be too long and it may be necessary to split them.
To do so, put a backslash at the end of the line: