mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Suppport .json grammars
This commit is contained in:
@@ -9,7 +9,8 @@ module.exports =
|
||||
class TextMateGrammar
|
||||
@readFromPath: (path) ->
|
||||
grammarContent = null
|
||||
if fs.extension(path) is '.cson'
|
||||
extension = fs.extension(path)
|
||||
if extension is '.cson' or extension is '.json'
|
||||
grammarContent = fs.readObject(path)
|
||||
else
|
||||
plist.parseString fs.read(path), (e, data) ->
|
||||
|
||||
Reference in New Issue
Block a user