Separate lexing of [...] inside regexps. Fixes #179.