r106296 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106295‎ | r106296 | r106297 >
Date:00:39, 15 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Accept row-only tables. The parser now eats [[en:Barack Obama]] as-is. Hooray!
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/pegTokenizer.pegjs.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/pegTokenizer.pegjs.txt
@@ -1027,7 +1027,7 @@
10281028
10291029 table_data
10301030 = //& { dp("table_data enter, pos=" + pos + input.substr(pos,10)); return true; }
1031 - n:("||" { return [] } / nt:newlineToken "|" { return nt })
 1031+ n:("||" { return [] } / nt:newlineToken ("|" / !'!') { return nt })
10321032 ! [}+-]
10331033 //& { dp('before attrib, pos=' + pos); return true; }
10341034 a:(as:generic_attribute+ space* "|" !"|" { return as } )?

Status & tagging log