projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

Parser breaks on nested brackets in inlines #1

Closed pwithnall closed 9 years ago

pwithnall commented 9 years ago

Test case:

= Inline Test Let’s put nested non-syntax brackets in an inline: $code(AddContact(ss) → (u)).

pwithnall commented 9 years ago

From discussion on IRC, this is actually the expected behaviour, since Ducktype does not treat the inner set of brackets as syntax (as they’re not part of an inline element). This is a bit counterintuitive, however, so it might be an idea to change Ducktype’s behaviour. This is being brought up on the mailing list.