:memo: Expose TextEditor::observeGrammar