Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Tue 06/12/2005 13:36:12

Title: Bug: Comment nesting
Post by: Radiant on Tue 06/12/2005 13:36:12
A line such as the following:

  /* comment // more comment */

is treated properly by the syntax highlighter, e.g. as a comment from /* to */

However, the compiler ignores everything after the double slash, and treats it as a comment until whenever a */ occurs later in the script.
Title: Re: Bug report: comment nesting
Post by: Pumaman on Tue 06/12/2005 18:22:16
Hehe interesting one, I'll look into it.
Title: Re: Bug report: comment nesting
Post by: Radiant on Thu 08/12/2005 15:30:06
Also, I noticed that the line

/*/

is incorrectly parsed as a comment that immediately ends (once more the syntax highlighter has it right by only considering it the start of a comment)