   # tokens in the line.
   highlightSync: ({filePath, fileContents, scopeName}={}) ->
     @loadGrammarsSync()
-    
+
     fileContents ?= fs.readFileSync(filePath, 'utf8') if filePath
 
     @_highlightCommon({filePath, fileContents, scopeName})

  # 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
