 
   constructor: ->
     super
-    @preferencesPath = fsUtils.join(@path, "Preferences")
-    @syntaxesPath = fsUtils.join(@path, "Syntaxes")
     @grammars = []
     @scopedProperties = []
     @metadata = {@name}

      done()

  loadGrammarsSync: ->
    for path in fsUtils.list(@syntaxesPath, @legalGrammarExtensions)
      @addGrammar(TextMateGrammar.loadSync(path))

  addGrammar: (grammar) ->


  getGrammars: -> @grammars

  getSyntaxesPath: ->
    syntaxesPath = fsUtils.join(@path, "syntaxes")
    if fsUtils.isDirectory(syntaxesPath)
      syntaxesPath
    else
      fsUtils.join(@path, "Syntaxes")

  getPreferencesPath: ->
    preferencesPath = fsUtils.join(@path, "preferences")
    if fsUtils.isDirectory(preferencesPath)
      preferencesPath
    else
      fsUtils.join(@path, "Preferences")

  loadScopedPropertiesSync: ->
    for grammar in @getGrammars()
      if properties = @propertiesFromTextMateSettings(grammar)
        selector = syntax.cssSelectorFromScopeSelector(grammar.scopeName)
        @scopedProperties.push({selector, properties})

    for path in fsUtils.list(@getPreferencesPath())
      {scope, settings} = fsUtils.readObject(path)
      if properties = @propertiesFromTextMateSettings(settings)
        selector = syntax.cssSelectorFromScopeSelector(scope) if scope?
