     if sync
       @loadGrammarsSync()
     else
-      @loadGrammars()
+      TextMatePackage.getLoadQueue().push(this)
     @loadScopedProperties()
 
   legalGrammarExtensions: ['plist', 'tmLanguage', 'tmlanguage', 'cson', 'json']

  @testName: (packageName) ->
    /(\.|_|-)tmbundle$/.test(packageName)

  constructor: ->
    super
    @preferencesPath = fsUtils.join(@path, "Preferences")

    TextMateGrammar.load path, (err, grammar) =>
      return console.log("Error loading grammar at path '#{path}':", err.stack ? err) if err
      @addGrammar(grammar)
      done()

  loadGrammarsSync: ->
    for path in fsUtils.list(@syntaxesPath, @legalGrammarExtensions) ? []
