     )
 
   _highlightCommon:({filePath, fileContents, scopeName}={}) ->
+
     grammar = @registry.grammarForScopeName(scopeName)
     grammar ?= @registry.selectGrammar(filePath, fileContents)
     lineTokens = grammar.tokenizeLines(fileContents)

  # per line and each line will contain one or more <span> elements for the
  # tokens in the line. All grammar loading and fs operations are async so you can use this module in a server or busy process.
  highlight: ({filePath, fileContents, scopeName}={},cb) ->
    @loadGrammars((err) =>
      if err
        return cb(err)

      if filePath
        fs.readFile(filePath, 'utf8', (err,fileContents)->
          if err
            return cb(err)



    @_loadingGrammars = [cb]
    callbacks = (err) =>

      cbs = @_loadingGrammars
      @_loadingGrammars = true
