jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I88c8f654b8167fd2bb9964e89dfa3384c6486761
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits