       process.exit(1)
       return
 
-    html = new Highlights().highlightSync({filePath, scopeName: cli.argv.scope})
+    html = new Textlex().lexSync({filePath, scopeName: cli.argv.scope})
     if outputPath
       fs.writeFileSync(outputPath, html)
     else

path = require 'path'
fs = require 'fs-plus'
optimist = require 'optimist'
Highlights = require './highlights'

module.exports = ->
  cli = optimist.describe('h', 'Show this message').alias('h', 'help')

    fileContents = ''
    process.stdin.on 'data', (chunk) -> fileContents += chunk.toString()
    process.stdin.on 'end', ->
      html = new Textlex().lexSync({filePath, fileContents, scopeName: cli.argv.scope})
      if outputPath
        fs.writeFileSync(outputPath, html)
      else
