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 unicode flag if all RegExps use it #123

Closed tjvr closed 5 years ago

tjvr commented 5 years ago

Mark the final regex as /u, if every RegExp sets the /uflag, to solve #116.

If one RegExp has the /u flag, then all of them must have it.

Strings don't need any special handling.