kach / nearley

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

Fixed handling of custom matchers written as test functions #517

Closed airportyh closed 4 years ago

airportyh commented 4 years ago

This fixes https://github.com/kach/nearley/issues/487.

Also extracted 2 utility functions getSymbolShortDisplay and getSymbolLongDisplay so that the 2 versions of the symbol display functions are close by each other and future authors can see that they are related.

kach commented 4 years ago

Thank you for the quick turnaround! Published an update to npm as well, 2.19.4.