GWicke has uploaded a new change for review.

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


Change subject: Further relax the performance heuristic for attribute 
tokenization
......................................................................

Further relax the performance heuristic for attribute tokenization

Change-Id: I88c8f654b8167fd2bb9964e89dfa3384c6486761
---
M js/lib/pegTokenizer.pegjs.txt
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/50/74650/1

diff --git a/js/lib/pegTokenizer.pegjs.txt b/js/lib/pegTokenizer.pegjs.txt
index 35c143a..a6e23fc 100644
--- a/js/lib/pegTokenizer.pegjs.txt
+++ b/js/lib/pegTokenizer.pegjs.txt
@@ -1696,6 +1696,9 @@
     // syntax errors in production that hidden by the PHP parser (by stripping
     // the 'attributes').
     space* ([a-zA-Z|!+;] / 
+            // Crude heuristic that just excludes attribute-less row-syntax
+            // table cells like this with simple (pipe-less) values: |a||b||c
+            [^\'\"\n|]+ '|' [^|\n] /
             // Possibly a templated attribute
             '{{' [^}]+ '}'  /
             // comment or noincludes

-- 
To view, visit https://gerrit.wikimedia.org/r/74650
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I88c8f654b8167fd2bb9964e89dfa3384c6486761
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to