[TextEditor] Improved syntax highlighting regex match speed.