Merge "fix highlighting parameters inside a template transclusion (v 3.2.1)"

This commit is contained in:
jenkins-bot 2015-08-21 05:20:53 +00:00 committed by Gerrit Code Review
commit 2b513e0e3d
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "CodeMirror",
"version": "3.2",
"version": "3.2.1",
"author": [
"[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]",
"[https://www.mediawiki.org/wiki/User:Florianschmidtwelzow Florian Schmidt]"

View file

@ -734,7 +734,7 @@ CodeMirror.defineMode( 'mediawiki', function( config/*, parserConfig */ ) {
}
break;
case '{':
if ( stream.match( '{{' ) ) { // Variable
if ( !stream.match( '{{{{', false ) && stream.match( '{{' ) ) { // Template parameter (skip parameters inside a template transclusion, Bug: T108450)
stream.eatSpace();
state.stack.push( state.tokenize );
state.tokenize = inVariable;