4: Comments [✓] - royal-lang/rl GitHub Wiki

There are two types of comments in Royal. Single line comments and multi line comments.

You specify a single line comment with two slashes like:

// COMMENT

You specify the beginning of a multi line comment with a slash and an asterisk symbol.

/* START OF COMMENT

And then you specify the end of a multi line comment with an asterisk symbol and a slash.

END OF COMMENT */

Example:

// This is a single line comment.

/*
   This is a multi line comment.
*/