Optimize pattern character parsers.