kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.6k stars 232 forks source link

Allow whitespace between macro brackets #540

Closed aliclark closed 4 years ago

aliclark commented 4 years ago

This change would allow whitespace to be used between square brackets for macros, for example:

macro1[ expression ] -> expression
macro1[ expression {% id %} ]
kach commented 4 years ago

Thanks! I've pushed this, v2.19.7. :)