Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR after line continuation backslash leads to syntax error #328

Open
provegard opened this issue Aug 29, 2014 · 0 comments
Open

CR after line continuation backslash leads to syntax error #328

provegard opened this issue Aug 29, 2014 · 0 comments

Comments

@provegard
Copy link

provegard commented Aug 29, 2014

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.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4118228-cr-after-line-continuation-backslash-leads-to-syntax-error?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant