From d87f3188bca03b0da2011400d5346a84cdb78c89 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 7 Sep 2009 00:23:04 +0000 Subject: [PATCH] Don't embed ?> in string literals It messes up some syntax highlighters for some unknown reason. --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 4caa4838dc..227224aa83 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -534,7 +534,7 @@ class Parser $matches = array(); $taglist = implode( '|', $elements ); - $start = "/<($taglist)(\\s+[^>]*?|\\s*?)(\/?>)|<(!--)/i"; + $start = "/<($taglist)(\\s+[^>]*?|\\s*?)(\/?" . ">)|<(!--)/i"; while ( '' != $text ) { $p = preg_split( $start, $text, 2, PREG_SPLIT_DELIM_CAPTURE ); -- 2.20.1