Added flags to LexerGenerator

This commit allows specifying regex flags when adding new rules to a
lexer generator, for both, token and ignore patterns
Wohoo, thanks. That's it. :)