Bug: Comment nesting

Started by Radiant, Tue 06/12/2005 13:36:12

Previous topic - Next topic

Radiant

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.

Pumaman

Hehe interesting one, I'll look into it.

Radiant

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)

SMF spam blocked by CleanTalk