Merge "Don't detect additional { as part of the template name"

This commit is contained in:
jenkins-bot 2023-12-06 05:26:20 +00:00 committed by Gerrit Code Review
commit 64e7054717
2 changed files with 2 additions and 2 deletions

View file

@ -751,7 +751,7 @@
state.stack.push( state.tokenize ); state.stack.push( state.tokenize );
state.tokenize = inVariable; state.tokenize = inVariable;
return makeLocalStyle( 'mw-templatevariable-bracket', state ); return makeLocalStyle( 'mw-templatevariable-bracket', state );
} else if ( stream.match( /^\{[\s\u00a0]*/ ) ) { } else if ( stream.match( /^{(?!{(?!{))[\s\u00a0]*/ ) ) {
if ( stream.peek() === '#' ) { // Parser function if ( stream.peek() === '#' ) { // Parser function
state.nExt++; state.nExt++;
state.stack.push( state.tokenize ); state.stack.push( state.tokenize );

View file

@ -83,7 +83,7 @@
{ {
title: 'T292967: table syntax where all | are escaped with the {{!}} parser function', title: 'T292967: table syntax where all | are escaped with the {{!}} parser function',
input: '{{{!}}\n{{!}}-\n{{!}}}', input: '{{{!}}\n{{!}}-\n{{!}}}',
output: '<pre><span><span class="cm-mw-template-ground cm-mw-template-bracket">{{</span><span class="cm-mw-template-ground cm-mw-template-name cm-mw-pagename">{!</span><span class="cm-mw-template-ground cm-mw-template-bracket">}}</span></span></pre><pre><span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">{{</span><span class="cm-mw-ext-ground cm-mw-parserfunction-name">!</span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">}}</span>-</span></pre><pre><span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">{{</span><span class="cm-mw-ext-ground cm-mw-parserfunction-name">!</span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">}}</span>}</span></pre>' output: '<pre><span>{<span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">{{</span><span class="cm-mw-ext-ground cm-mw-parserfunction-name">!</span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">}}</span></span></pre><pre><span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">{{</span><span class="cm-mw-ext-ground cm-mw-parserfunction-name">!</span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">}}</span>-</span></pre><pre><span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">{{</span><span class="cm-mw-ext-ground cm-mw-parserfunction-name">!</span><span class="cm-mw-ext-ground cm-mw-parserfunction-bracket">}}</span>}</span></pre>'
}, },
{ {
title: 'section headings', title: 'section headings',