Subramanya Sastry has uploaded a new change for review.

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

Change subject: T85744: Prevent Parsoid from getting constipated on large lists
......................................................................

T85744: Prevent Parsoid from getting constipated on large lists

* Returning tokens one list item at a time enables easy token
  motion through the pipeline.

* 
http://localhost:8000/urwiki/%D9%86%D8%A7%D9%85_%D9%85%D9%82%D8%A7%D9%85%D8%A7%D8%AA_%D8%A7%DB%92?oldid=1124223
  now parses properly when the http 500 hack is removed for it
  (coming separately).

Change-Id: I90ced8f7e217d6ba5224b3e7de1efbf6c1aed943
---
M lib/pegTokenizer.pegjs.txt
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/lib/pegTokenizer.pegjs.txt b/lib/pegTokenizer.pegjs.txt
index f7cfa0e..3d09ed3 100644
--- a/lib/pegTokenizer.pegjs.txt
+++ b/lib/pegTokenizer.pegjs.txt
@@ -238,7 +238,7 @@
  */
 block_line
   = h
-  / lists
+  / list_item
   / st:space_or_newline*
     r:( & [ <{}|!] tl:table_lines { return tl; }
       // tag-only lines should not trigger pre either
@@ -1500,7 +1500,7 @@
 /*********************************************************
  *   Lists
  *********************************************************/
-lists = (dtdd / hacky_dl_uses / li) (sol (dtdd / hacky_dl_uses / li))*
+list_item = dtdd / hacky_dl_uses / li
 
 li = bullets:list_char+
      c:nested_block_line

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I90ced8f7e217d6ba5224b3e7de1efbf6c1aed943
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>

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

Reply via email to