* Continue parsing macro tags even if it is a comment. This is the only

way we can correctly catch embedded macros. Fixes bug 588.
  http://helma.org/bugs/show_bug.cgi?id=588
This commit is contained in:
hns 2008-05-15 09:45:33 +00:00
parent 0aaa141a4b
commit 449cbd815e

View file

@ -437,13 +437,8 @@ public final class Skin {
if (state == PARSE_MACRONAME && "//".equals(b.toString())) {
isCommentMacro = true;
// search macro end tag
while (i < length - 1 &&
(source[i] != '%' || source[i + 1] != '>')) {
i++;
}
state = PARSE_DONE;
break loop;
// just continue parsing the macro as this is the only way
// to correctly catch embedded macros - see bug 588
}
break;