mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
fix templagte argements with '=' is more that one (v 1.4.1)
Change-Id: I6191fff3d2d9084189de2c10107ef43a236a2561
This commit is contained in:
parent
025027e26d
commit
0697497834
|
@ -15,7 +15,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
||||||
die( 'This file is an extension to MediaWiki and thus not a valid entry point.' );
|
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
|
// Register this extension on Special:Version
|
||||||
$wgExtensionCredits['parserhook'][] = array(
|
$wgExtensionCredits['parserhook'][] = array(
|
||||||
|
|
|
@ -71,7 +71,7 @@ CodeMirror.defineMode('mediawiki', function( /*config, parserConfig*/ ) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'TemplateArgumentContinue':
|
case 'TemplateArgumentContinue':
|
||||||
if ( stream.eatWhile( /[^=<\{\&\}\|]/ ) ) {
|
if ( stream.eatWhile( /[^<\{\&\}\|]/ ) ) {
|
||||||
state.ImInBlock.pop();
|
state.ImInBlock.pop();
|
||||||
state.ImInBlock.push( 'TemplateArgument' );
|
state.ImInBlock.push( 'TemplateArgument' );
|
||||||
return 'string';
|
return 'string';
|
||||||
|
|
Loading…
Reference in a new issue