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

Triple-quoted symbols break syntax highlighting in certain cases #27

Open
mikesol opened this issue Jun 30, 2022 · 1 comment
Open

Triple-quoted symbols break syntax highlighting in certain cases #27

mikesol opened this issue Jun 30, 2022 · 1 comment

Comments

@mikesol
Copy link

mikesol commented Jun 30, 2022

Syntax highlighting works here:

syntax works

but not here:

syntax works

I'm wondering if it's possible to fix? I know the rules are already quite complex, so maybe it's too thorny, but if it's fixable it'd be helpful!

@nwolverson
Copy link
Owner

That's a bit odd, I'd almost expect it to be the other way.

Highlighting is line based, particularly the context of being "in a type" is fragile when it comes to line breaks, it's all horrible. Probably easier just to break your line in the right place if it bothers you :)

This syntax highlighting is based on https://github.com/purescript-contrib/atom-language-purescript and it looks like there may be a related issue purescript-contrib/atom-language-purescript#52

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