From e1c37b835b3dd4aa0817354f2c9fdf2cb6779b46 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 26 Jan 2010 16:16:00 +0000 Subject: [PATCH] Parser documentation: "We are not counting sequences of five apostrophes." comment is wrong. It was added on r4578, when they stopped being counted, but since r4747 (fixing bug 40) they are counted again. Clarify what $first variables are. --- includes/parser/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index ccfc2256e3..c9376e927c 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1142,7 +1142,6 @@ class Parser $arr[$i] = "''''''"; } # Count the number of occurrences of bold and italics mark-ups. - # We are not counting sequences of five apostrophes. if ( strlen( $arr[$i] ) == 2 ) { $numitalics++; } elseif ( strlen( $arr[$i] ) == 3 ) { $numbold++; } elseif ( strlen( $arr[$i] ) == 5 ) { $numitalics++; $numbold++; } @@ -1160,7 +1159,8 @@ class Parser $i = 0; # These are indexes to the /next/ array entry than the - # one holding the text matching the condition. + # one holding the text matching the condition which gives name + # to the variable. $firstsingleletterword = -1; $firstmultiletterword = -1; $firstspace = -1; -- 2.20.1