Small lexer optimisation using the \G assertion.