* 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:
parent
0aaa141a4b
commit
449cbd815e
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue