* Strip comments early, before template expansion. This mimics the behaviour in the...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 17 Dec 2007 15:07:25 +0000 (15:07 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 17 Dec 2007 15:07:25 +0000 (15:07 +0000)
commit9d4c2639965eafeff1feef3728b52a9bdbe23f1e
treec8fdcc9a300adb49b8a775a077633fd56556f3a3
parenta4f99d65dcb0e5e4060f981015e57b97e2278e62
* Strip comments early, before template expansion. This mimics the behaviour in the old parser. Added parser tests demonstrating the regression this fixes. The syntactic effect is fairly elegant, with comments taking effect at source level, as expected. The removeHTMLcomments() and preprocessToDom() passes could be merged at a later date.
* No need for comment stripping in Expr.php anymore
* Updated srvus() to roughly account for these changes
* Gave comment handling its own preprocessor tag, and split off comment handling from extensionSubstitution(). This only applies for the non-HTML modes, since in HTML mode, comments are stripped early.
* Strip comments from template argument names (PPFrame::newChild).
includes/Parser.php
includes/Parser_OldPP.php
maintenance/parserTests.txt