jenkins-bot has submitted this change and it was merged. Change subject: [jscs] Apply the last passes manually to the tokenizer ......................................................................
[jscs] Apply the last passes manually to the tokenizer Change-Id: I6e86f35bec5156704bc4011214dbeedae53d4486 --- M lib/pegTokenizer.pegjs.txt 1 file changed, 7 insertions(+), 7 deletions(-) Approvals: Arlolra: Looks good to me, approved Subramanya Sastry: Looks good to me, approved jenkins-bot: Verified diff --git a/lib/pegTokenizer.pegjs.txt b/lib/pegTokenizer.pegjs.txt index 18ffb98..030b0d9 100644 --- a/lib/pegTokenizer.pegjs.txt +++ b/lib/pegTokenizer.pegjs.txt @@ -351,11 +351,11 @@ c.unshift( extras1 ); } } - if(e.length > level) { + if (e.length > level) { e = e.join(''); var extras2 = e.substr(0, e.length - level), lastElem = c[c.length - 1]; - if(lastElem.constructor === String) { + if (lastElem.constructor === String) { c[c.length-1] += extras2; } else { c.push( extras2 ); @@ -437,7 +437,7 @@ targetOff:({ return peg$currPos; }) content:( t1:( - & { return stops.push('pipe', false); } + & { return stops.push('pipe', false); } t:inlineline { stops.pop('pipe'); return t; } / ! { return stops.pop('pipe'); } ) { return t1; } @@ -746,7 +746,7 @@ vStartPos:({return peg$currPos;}) optionalSpaceToken tpv:template_param_value? { - return { kEndPos:kEndPos, vStartPos: vStartPos, value: (tpv && tpv.tokens) || [] }; + return { kEndPos: kEndPos, vStartPos: vStartPos, value: (tpv && tpv.tokens) || [] }; } )? { //console.warn( 'named template_param matched' + pp([name, value ]) ); @@ -847,7 +847,7 @@ } //console.warn('lcontent: ' + JSON.stringify( lcontent, null, 2 ) ); - if ( target === null ){ + if ( target === null ) { var src = text(); return [src]; } @@ -892,7 +892,7 @@ { //console.warn('link_text' + pp(h) + pp(hs)); stops.dec('linkdesc'); - if( hs !== null ) { + if ( hs !== null ) { return h.concat(hs); } else { return h; @@ -910,7 +910,7 @@ //console.warn('link_option' + pp(h) + pp(hs)); stops.pop('pipe'); stops.dec('linkdesc'); - if( hs !== null ) { + if ( hs !== null ) { return h.concat(hs); } else { return h; -- To view, visit https://gerrit.wikimedia.org/r/202073 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6e86f35bec5156704bc4011214dbeedae53d4486 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Arlolra <abrea...@wikimedia.org> Gerrit-Reviewer: Arlolra <abrea...@wikimedia.org> Gerrit-Reviewer: Cscott <canan...@wikimedia.org> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits