mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Use atom.syntax instead of window.syntax
This commit is contained in:
@@ -64,7 +64,7 @@ class TokenizedBuffer
|
||||
@emit 'grammar-changed', grammar
|
||||
|
||||
reloadGrammar: ->
|
||||
if grammar = syntax.selectGrammar(@buffer.getPath(), @buffer.getText())
|
||||
if grammar = atom.syntax.selectGrammar(@buffer.getPath(), @buffer.getText())
|
||||
@setGrammar(grammar)
|
||||
else
|
||||
throw new Error("No grammar found for path: #{path}")
|
||||
|
||||
Reference in New Issue
Block a user