Syntax Highlight algo optimization attempt