Protect language converter markup in the preprocessor.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 20 Sep 2016 22:26:32 +0000 (18:26 -0400)
committerTim Starling <tstarling@wikimedia.org>
Thu, 15 Dec 2016 23:50:44 +0000 (23:50 +0000)
commit28774022769d2273be16c6c6e1cca710a1fd97ef
treeca75998bfa41087c5e9143604dc92ae0afe8e14a
parent1676448145f28cdf5bf399b13a39d909d7e0bb77
Protect language converter markup in the preprocessor.

This ensures that `{{echo|-{R|foo}-}}` is parsed correctly as
a template invocation with a single argument, not as two separate
arguments split by the `|`.

Bug: T146304
Change-Id: I709d007c70a3fd19264790055042c615999b2f67
includes/parser/Preprocessor.php
includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php
tests/parser/parserTests.txt