diff --git a/extension.json b/extension.json index 907c3172..f3124812 100644 --- a/extension.json +++ b/extension.json @@ -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]" diff --git a/resources/mode/mediawiki/mediawiki.js b/resources/mode/mediawiki/mediawiki.js index 60b65fbc..303e0353 100644 --- a/resources/mode/mediawiki/mediawiki.js +++ b/resources/mode/mediawiki/mediawiki.js @@ -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;