* Fixed two comment parsertests I made earlier
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 Jan 2006 16:51:03 +0000 (16:51 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 Jan 2006 16:51:03 +0000 (16:51 +0000)
* Fixed a comment within a ... comment

maintenance/parserTests.txt

index bf2d8c4..ddb6581 100644 (file)
@@ -247,10 +247,12 @@ Comment semantics and delimiters, redux
 !! test
 Comment semantics and delimiters: directors cut
 !! input
-<!-- ... However we're purely an XML shop you see, so we eat everything
-starting with < followed by !-- until the first -- and > we see, observe: -->-->
+<!-- ... However we like to keep things simple and somewhat XML-ish so we eat
+everything starting with < followed by !-- until the first -- and > we see,
+that wouldn't be valid XML however, since in XML -- has to terminate a comment
+-->-->
 !! result
-<p>--&gt;
+<p>-->
 </p>
 !! end
 
@@ -259,7 +261,7 @@ Comment semantics: nesting
 !! input
 <!--<!-- no, we're not going to do anything fancy here -->-->
 !! result
-<p>--&gt;
+<p>-->
 </p>
 !! end