In text it says 'Multi-line comments may not nest'. Thus this
/* mello /* yeloo */
is NOT allowed.
But reading the BNF for MultiLineComment would syntactically allow
me to do that.
What's wrong ?
Thanks for any help
Regards
Felix
Your example is not a nested comment. A nested comment would look like
/* foo /* bar */ baz */
And the 'baz' part would be interpreted as an identifier instead of a
comment, since the comment ended at the *first* "*/" instead of the second.
--Steven Cole
sc...@planetweb.com
var passed = true;
try {
eval("/* mello /* yello */");
} catch (e) {
passed = false;
}
print(passed);
should print "true", but prints false on both engines. I'll fix Rhino.
Could someone fix SpiderMonkey?
--Norris
Waldemar
--N
Waldemar