Parse error with UTF-8 BOM + @ #67

provegard opened this Issue Oct 1, 2012 · 3 comments


None yet

2 participants


I have a coffee file with a UTF-8 BOM marker that begins with a @:

<U+FEFF>@foo = bar

Coffeelint gives: error: Error: Parse error on line 1: Unexpected '@'

If I start the file with an empty line, the error goes away.


I don't know how to generate a file like that. Can you provide a file, or instructions?


On Windows:

  1. Open Notepad
  2. Type "@foo = bar" without the quotes
  3. From the File menu, select Save As...
  4. In the Encoding drop-down, select UTF-8
  5. Save

You should now have a file with a UTF-8 BOM marker.


I'm unable to reproduce the problem with the currently released version, or master. Parse errors are also come from CoffeeScript, so if you get that error you probably can't run your file either.

I don't use Windows, so maybe it's a problem with CoffeeScript on Windows?

@AsaAyers AsaAyers closed this May 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment