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

Problem with multiline strings #181

Closed
qrilka opened this issue Jul 12, 2013 · 4 comments
Closed

Problem with multiline strings #181

qrilka opened this issue Jul 12, 2013 · 4 comments

Comments

@qrilka
Copy link

qrilka commented Jul 12, 2013

Looks like haskell parsing is incorrect in dealing with escaping in multiline strings. I a quite simple (but a bit dummy) example:

x = "\
\"
y = 42

I get the third line colored like a string so a backslash used for the line continuation and a quote gets wrongly interpreted as an escaped quote.

@hvr
Copy link
Member

hvr commented Jul 12, 2013

fyi, this affects all uses of Haskell's whitespace gap feature, not only multiline strings, the following has the same issue:

x = "\ \"
y = 42

@vagifverdi
Copy link

Not only strings. Generally "" followed by any character except whitespace breaks coloring AND matching brakets:

map (\(x,y) -> x + y) bla

This will break matchig brakets because the opening brakets right after "" will not be reconised anymore. The workaorund is to put a space between them:

map (\ (x,y) -> x + y) bla

@gracjan
Copy link
Contributor

gracjan commented Mar 1, 2015

This issue report was last update in 2013. Is it still relevant to current code state?

@ivan-m
Copy link
Contributor

ivan-m commented Mar 1, 2015

I just tested the initial example, and it looks like it's still an issue.

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

5 participants