Arlolra has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/202073

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/73/202073/1

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: newchange
Gerrit-Change-Id: I6e86f35bec5156704bc4011214dbeedae53d4486
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <abrea...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to