Fix SkipAnyPattern code generation.