fix templagte argements with '=' is more that one (v 1.4.1)

Change-Id: I6191fff3d2d9084189de2c10107ef43a236a2561
This commit is contained in:
Pavel Astakhov 2014-08-25 11:08:40 +06:00
parent 025027e26d
commit 0697497834
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is an extension to MediaWiki and thus not a valid entry point.' );
}
const CODEMIRROR_VERSION = '1.4.0';
const CODEMIRROR_VERSION = '1.4.1';
// Register this extension on Special:Version
$wgExtensionCredits['parserhook'][] = array(

View file

@ -71,7 +71,7 @@ CodeMirror.defineMode('mediawiki', function( /*config, parserConfig*/ ) {
}
break;
case 'TemplateArgumentContinue':
if ( stream.eatWhile( /[^=<\{\&\}\|]/ ) ) {
if ( stream.eatWhile( /[^<\{\&\}\|]/ ) ) {
state.ImInBlock.pop();
state.ImInBlock.push( 'TemplateArgument' );
return 'string';