CoffeeScriptRedux
CoffeeScriptRedux copied to clipboard
CR after line continuation backslash leads to syntax error
Just tried to migrate a project from the original compiler to redux. One of the errors I encountered is this:
angular.module("foobar", ["dep1", \
"dep2"])
I get:
Syntax error on line 2, column 4: unexpected '(INDENT)' (\uEFEF)
1 : angular.module("foobar", ["dep1", \
2 : "dep2"])
^ :~~~~^
3 :
4 :
The reason is that the backslash is followed by CRLF since I'm on Windows. The problem appears to be already in the preprocessor and I have a fix for it. I'll open a PR.
Note: I initially thought I'd hit #83, but this is slightly different and my fix certainly doesn't help that issue at all.