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

Syntax highlighting confused by lack of spaces #1783

Open
aberent opened this issue Aug 26, 2022 · 1 comment
Open

Syntax highlighting confused by lack of spaces #1783

aberent opened this issue Aug 26, 2022 · 1 comment

Comments

@aberent
Copy link

aberent commented Aug 26, 2022

If I have the following code in a file:

bad xs = [x|x <- xs]
good xs = [ x | x <- xs] 

the syntax highlighting gives up after the first '[x'.

If I remove or comment out 'bad' then it highlights correctly.

@purcell
Copy link
Member

purcell commented Aug 26, 2022

Presumably related to TemplateHaskell using the [quoter| ...|] syntax. You should prefer the good syntax above for list comprehensions.

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

2 participants