   activate: ->
     keymap.add(map) for map in @keymaps
     applyStylesheet(path, content) for [path, content] in @stylesheets
+    syntax.addGrammar(grammar) for grammar in @grammars
 
     if @deferActivation
       @subscribeToActivationEvents()

  metadata: null
  keymaps: null
  stylesheets: null
  mainModule: null
  deferActivation: false


      @stylesheets.push([stylesheetPath, loadStylesheet(stylesheetPath)])

  loadGrammars: ->
    @grammars = []
    grammarsDirPath = fs.join(@path, 'grammars')
    for grammarPath in fs.list(grammarsDirPath, ['.cson', '.json']) ? []
      @grammars.push(TextMateGrammar.loadSync(grammarPath))

  loadScopedProperties: ->
    scopedPropertiessDirPath = fs.join(@path, 'scoped-properties')
