![]() |
Script comment bug
Under certain circumstances the script compiler will complain about an unexpected token (exactly what depends on the code).
PHP Code:
PHP Code:
It seems the line comment is taking precedence over the multi-line comment, so the ending */ is ignored in this case. It may not be anything serious, but it certainly was irritating to look through a code that appears perfectly fine without a useful compiler error. It gives a different unexpected token if other multi-line comments are found further down in the script. |
A single-line comment can out-comment the */, this is not a bug though, but the syntax highlighter in the RC window is handling comments slightly different.
|
| All times are GMT +2. The time now is 05:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.