 
 
         grammarsDir = path.resolve(packageDir, 'grammars')
-        console.log('grammarsDir  --------> ',grammarsDir)
         @_registryLoadGrammarsDir(grammarsDir,cb)
 
       )


    @_loadingGrammars = [cb]
    callbacks = (err) =>
      console.log('LOADGRAMMARS: finished loading. unrolling ',@_loadingGrammars)
      if err
        console.log(err+''+err.stack)

      cbs = @_loadingGrammars
      @_loadingGrammars = true

  # tokens in the line.
  highlightSync: ({filePath, fileContents, scopeName}={}) ->
    @loadGrammarsSync()

    fileContents ?= fs.readFileSync(filePath, 'utf8') if filePath

    @_highlightCommon({filePath, fileContents, scopeName})
