Propagate a did-use-grammar event out of the tokenized buffer.

This commit is contained in:
joshaber
2016-04-25 14:49:43 -04:00
parent 956e037681
commit 6b309be6da
3 changed files with 10 additions and 1 deletions

View File

@@ -325,6 +325,9 @@ class TextEditor extends Model
onDidChangeGrammar: (callback) ->
@emitter.on 'did-change-grammar', callback
onDidUseGrammar: (callback) ->
@displayBuffer.onDidUseGrammar(callback)
# Extended: Calls your `callback` when the result of {::isModified} changes.
#
# * `callback` {Function}