Eat '[[[' as plain text token, makes it 212 passing.

This commit is contained in:
Gabriel Wicke 2012-01-18 00:23:17 +00:00
parent 178adbc342
commit 336be4f617
Notes: Gabriel Wicke 2012-02-27 16:40:01 +00:00

View file

@ -539,6 +539,8 @@ inline_element
= //& { dp('inline_element enter' + input.substr(pos, 10)); return true; } = //& { dp('inline_element enter' + input.substr(pos, 10)); return true; }
& '<' ( comment / xmlish_tag ) & '<' ( comment / xmlish_tag )
/ & '{' ( & '{{{{{' template / tplarg / template ) / & '{' ( & '{{{{{' template / tplarg / template )
// Eat three opening brackets as text.
/ '[[[' { return { type: 'TEXT', value: '[[[' } }
/ & '[' ( wikilink / extlink ) / & '[' ( wikilink / extlink )
/ & "'" quote / & "'" quote