scanner: Accept \R and \N escape sequences in regex literals