Improve parsing of escape characters and regexp literals.