CXuesong / MwParserFromScratch

A basic .NET Library for parsing wikitext into AST.
Apache License 2.0
18 stars 5 forks source link

Cannot correctly handle a case with pathological braces nesting #1

Open CXuesong opened 8 years ago

CXuesong commented 8 years ago

Consider the following case

{{{{{arg}}

which should be parsed as

[{{{] {{ [arg] }}

But my parser handles it as

[{] {{{ [{arg] }}

The corresponding test case is UnitTestProject1.AbnormalCaseTests.TestBraces3.