Syntax highlighter optimizations