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

can not highlight after a list comprehension #177

Closed
Babystepstocoding opened this issue Nov 10, 2020 · 3 comments
Closed

can not highlight after a list comprehension #177

Babystepstocoding opened this issue Nov 10, 2020 · 3 comments

Comments

@Babystepstocoding
Copy link

Screen Shot 2020-11-10 at 12 28 13 pm

@sheaf
Copy link
Collaborator

sheaf commented Nov 10, 2020

Hi, thanks for the bug report.

This problem is due to a conflict between list comprehension and quasi-quotations. To fix the highlighting, you need to add a space around x, e.g.

[ x | x<-list, p x ]

Note that the same issue exists on GitHub:

-- using list comprehension
myFilter :: (a-> Bool) -> [a] -> [a]
myFilter p list  [x| x<- list, px]

-- not highlighted
f :: x -> x
f x = x
--
{-

-}

@sheaf
Copy link
Collaborator

sheaf commented Nov 10, 2020

Closed as duplicate of #176.

@sheaf sheaf closed this as completed Nov 10, 2020
@Babystepstocoding
Copy link
Author

Babystepstocoding commented Nov 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants