mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
@@ -1694,12 +1694,12 @@ class Editor extends View
|
||||
getGrammar: ->
|
||||
@activeEditSession.getGrammar()
|
||||
|
||||
# {Delegates to: EditSession.setGrammar}
|
||||
# {Delegates to: EditSession.setGrammar}
|
||||
setGrammar: (grammar) ->
|
||||
throw new Error("Only mini-editors can explicity set their grammar") unless @mini
|
||||
@activeEditSession.setGrammar(grammar)
|
||||
|
||||
# {Delegates to: EditSession.reloadGrammar}
|
||||
# {Delegates to: EditSession.reloadGrammar}
|
||||
reloadGrammar: ->
|
||||
@activeEditSession.reloadGrammar()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user