[TextEditor] Rules no longer hold a reference to their syntax mode.
(fixes a leak when implementing semantic highlighting)