mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Propagate a did-use-grammar event out of the tokenized buffer.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user