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

['|'] or any list with '|' as its first element stops syntax highlighting for the rest of the document. #170

Closed
gorilskij opened this issue Jul 25, 2020 · 2 comments
Labels

Comments

@gorilskij
Copy link

This is only a problem with che character '|' as the first element in a list literal, i imagine it has something to do with comprehension literals?

An example:
Schermata 2020-07-25 alle 15 47 10
... the rest of the file is white.

Doesn't cause a problem when the list is recognized as an error.
Schermata 2020-07-25 alle 15 50 25

For some reason this (erroneous) pattern fixes the highlighting (it then continues as normal).
Note that | ] (with a space) doesn't work.
Schermata 2020-07-25 alle 15 57 04

Also, this works
Schermata 2020-07-25 alle 15 54 14

And this works
Schermata 2020-07-25 alle 15 54 47

@sheaf sheaf closed this as completed in c567737 Jul 25, 2020
@sheaf sheaf added the bug label Jul 25, 2020
@sheaf
Copy link
Collaborator

sheaf commented Jul 25, 2020

Thanks for the bug report, this was a problem with the highlighter for quasiquotations. I've committed a fix to the repository and added a test case.

By the way, I recommend using a different theme, one that supports more of the syntax highlighting scopes provided by this extension. I've put together the colours I'm currently using into a theme on the VS Code Marketplace which you might be interested in trying out. The repository for the theme also contains some info about customising your theme if you want to change anything.

@gorilskij
Copy link
Author

Thanks for the quick fix. I didn't know about quasiquoting at all, looks like an interesting feature of Haskell. Thanks for the theme recommendation too, I went with atom dark instead but highlighting infix operators is a nice idea.

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

No branches or pull requests

2 participants