r21781 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21780‎ | r21781 | r21782 >
Date:23:41, 1 May 2007
Author:sanbeg
Status:old
Tags:
Comment:
add emacs modeline, to give consistent indentation most of the time
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -1,5 +1,8 @@
 2+#-*- tab-width:4 c-basic-offset:4 -*- */
23 <?php
 4+
35 /**
 6+ *
47 * File for Parser and related classes
58 *
69 * @addtogroup Parser
@@ -96,7 +99,7 @@
97100 */
98101 # Persistent:
99102 var $mTagHooks, $mFunctionHooks, $mFunctionSynonyms, $mVariables;
100 -
 103+
101104 # Cleared with clearState():
102105 var $mOutput, $mAutonumber, $mDTopen, $mStripState;
103106 var $mIncludeCount, $mArgStack, $mLastSection, $mInPre;
@@ -130,7 +133,7 @@
131134 $this->mFunctionSynonyms = array( 0 => array(), 1 => array() );
132135 $this->mFirstCall = true;
133136 }
134 -
 137+
135138 /**
136139 * Do various kinds of initialisation on the first call of the parser
137140 */
@@ -138,12 +141,12 @@
139142 if ( !$this->mFirstCall ) {
140143 return;
141144 }
142 -
 145+
143146 wfProfileIn( __METHOD__ );
144147 global $wgAllowDisplayTitle, $wgAllowSlowParserFunctions;
145 -
 148+
146149 $this->setHook( 'pre', array( $this, 'renderPreTag' ) );
147 -
 150+
148151 $this->setFunctionHook( 'int', array( 'CoreParserFunctions', 'intFunction' ), SFH_NO_HASH );
149152 $this->setFunctionHook( 'ns', array( 'CoreParserFunctions', 'ns' ), SFH_NO_HASH );
150153 $this->setFunctionHook( 'urlencode', array( 'CoreParserFunctions', 'urlencode' ), SFH_NO_HASH );