Added flags to LexerGenerator

This commit allows specifying regex flags when adding new rules to a
lexer generator, for both, token and ignore patterns
I'm pretty sure the RHS here should be `rule.re.flags`?