mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #1077 from atom/copy-docs-into-atom-io
Copy docs into atom io
This commit is contained in:
@@ -1705,12 +1705,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