r105533 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105532‎ | r105533 | r105534 >
Date:10:33, 8 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Tidy up the grammar a bit.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt
@@ -766,6 +766,7 @@
767767 return decodeURI("%" + c0 + c1)
768768 }
769769
 770+//[^][<>"\\x00-\\x20\\x7F\p{Zs}]
770771 url
771772 = proto:url_protocol
772773 rest:( [^ :\]\[\n"'<>\x00-\x20\x7f,.&%\u00A0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000]
@@ -776,7 +777,6 @@
777778 {
778779 return proto + rest.join('');
779780 }
780 -//[^][<>"\\x00-\\x20\\x7F\p{Zs}]
781781
782782 template
783783 = "{{" target:template_target
@@ -834,7 +834,6 @@
835835 template_param_name
836836 = h:( !"}}" x:([^=|\n]) { return x } )* { return h.join(''); }
837837
838 -// XXX: convert to inlineline with syntactic stop on "}}"
839838 template_param_text
840839 = & { return setFlag('template') }
841840 il:inline+ {
@@ -842,15 +841,6 @@
843842 return il;
844843 }
845844 / & { clearFlag('template'); return false; }
846 -// urltext
847 -// / xmlish_tag
848 -// / extlink
849 -// / template
850 -// / tplarg
851 -// / wikilink
852 -// / quote
853 -// / c:[^}|\n]+ {return {type: 'TEXT', value: c.join('')}}
854 -// / !"}}" x:([^|\n]) { return {type: 'TEXT', value: x} }
855845
856846 wikilink
857847 = "[["

Status & tagging log