no-context / moo

Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.
BSD 3-Clause "New" or "Revised" License
824 stars 66 forks source link

Allow multiple fast rules in one state #109

Closed larsgw closed 5 years ago

larsgw commented 6 years ago

This should fix the variable hoisting issue with multiple fast rules in a single state.

Closes #108

tjvr commented 6 years ago

Thanks for this, this looks like a sensible fix!

Would you be able to add a test, to make sure we don't break this in future? 🙂

Sent with GitHawk

larsgw commented 6 years ago

I added one (it's quite specific though :slightly_smiling_face:).

nathan commented 6 years ago

LGTM

tjvr commented 5 years ago

Thank you! 😊

Sent with GitHawk