r12523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12522‎ | r12523 | r12524 >
Date:16:51, 8 January 2006
Author:avar
Status:old
Tags:
Comment:
* Fixed two comment parsertests I made earlier
* Fixed a comment within a ... comment
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -247,10 +247,12 @@
248248 !! test
249249 Comment semantics and delimiters: directors cut
250250 !! input
251 -<!-- ... However we're purely an XML shop you see, so we eat everything
252 -starting with < followed by !-- until the first -- and > we see, observe: -->-->
 251+<!-- ... However we like to keep things simple and somewhat XML-ish so we eat
 252+everything starting with < followed by !-- until the first -- and > we see,
 253+that wouldn't be valid XML however, since in XML -- has to terminate a comment
 254+-->-->
253255 !! result
254 -<p>--&gt;
 256+<p>-->
255257 </p>
256258 !! end
257259
@@ -259,7 +261,7 @@
260262 !! input
261263 <!--<!-- no, we're not going to do anything fancy here -->-->
262264 !! result
263 -<p>--&gt;
 265+<p>-->
264266 </p>
265267 !! end
266268

Status & tagging log