Support future regular expression flags

https://code.google.com/p/esprima/issues/detail?id=557