mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Load snippets from TextMate bundles
There's still a bunch of holes in this. TextMate snippets have features that we don't support yet. But the basic ones should now work.
This commit is contained in:
@@ -184,3 +184,11 @@ module.exports =
|
||||
CoffeeScript.eval(contents, bare: true)
|
||||
else
|
||||
JSON.parse(contents)
|
||||
|
||||
readPlist: (path) ->
|
||||
plist = require 'plist'
|
||||
object = null
|
||||
plist.parseString @read(path), (e, data) ->
|
||||
throw new Error(e) if e
|
||||
object = data[0]
|
||||
object
|
||||
|
||||
Reference in New Issue
Block a user