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:
Nathan Sobo
2013-01-09 11:43:04 -07:00
parent cab5b25e76
commit e33f93b40c
5 changed files with 49 additions and 5 deletions

View File

@@ -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