diff --git a/Tag.cpp b/Tag.cpp index 264db9a..dfab4a9 100644 --- a/Tag.cpp +++ b/Tag.cpp @@ -912,7 +912,12 @@ namespace jet { } if(hasContainer) scanContainer(in); - return false; + // true: the cursor is already past the nested tag. Returning false + // made both callers also nextChar(), skipping the first character + // after it - so a marker right after the nested close (, + // , ) was never seen and the outer tag + // lost its own end or split. + return true; } // Same-name match failed - if THIS tag itself is one of the // splitTagName="else" conditionals (if/while/until/ifrow), a @@ -932,7 +937,7 @@ namespace jet { if(splitTagName == "else") { for(int i = 0; i < elseSplitTagNameCount; i++) { if(ifNested(in, elseSplitTagNames[i])) - break; + return true; } } return false;