mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use new parseFileSync method of plist npm
This commit is contained in:
@@ -18,10 +18,9 @@ class TextMateTheme extends Theme
|
||||
super
|
||||
|
||||
buildRulesets: ->
|
||||
plist.parseString fs.read(@path), (error, [{settings}]) =>
|
||||
throw new Error("Error loading theme at '#{@path}': #{error}") if error
|
||||
@buildGlobalSettingsRulesets(settings[0])
|
||||
@buildScopeSelectorRulesets(settings[1..])
|
||||
{settings} = plist.parseFileSync(@path)
|
||||
@buildGlobalSettingsRulesets(settings[0])
|
||||
@buildScopeSelectorRulesets(settings[1..])
|
||||
|
||||
getStylesheet: ->
|
||||
lines = []
|
||||
|
||||
Reference in New Issue
Block a user