Optimize syntax coloring