issue #1226 fixed parsing of regexp switches and comments