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

Bracketed type signatures over multiple lines aren't highlighted properly #178

Open
sheaf opened this issue Nov 12, 2020 · 1 comment
Open
Labels

Comments

@sheaf
Copy link
Collaborator

sheaf commented Nov 12, 2020

Viz.:
multiline_issue

GitHub highlighting also suffers from the same issue it seems:

proof ::  SomeVeryLongExpression  a b
      :~: SomeOtherLongExpression c d

quux ( proof ::  SomeVeryLongExpression  a b
             :~: SomeOtherLongExpression c d
     )
 
quux [ x :: a
              B c ]
@sheaf sheaf added the bug label Nov 12, 2020
sheaf added a commit to sheaf/language-haskell that referenced this issue Nov 12, 2020
@JustusAdam
Copy link
Owner

I think this is because I added \n as a termination character to type signatures started with ::, which is import ant in do notation and similar, for example x <- y :: Types \n other_stuff in that case other_stuff obviously shouldn't be part of a type signature. I thin this is fixable by not including \n as termination in parenthesized type annotations, however it may be difficult to do so without a lot of code duplication.

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