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

Incorrect highlighting of type annotated monadic bound variable #67

Open
andrewthad opened this issue Apr 27, 2016 · 1 comment
Open

Comments

@andrewthad
Copy link

If you have a program that looks like this:

myFunc :: IO ()
myFunc = do
  x :: Int <- readLn
  print x

Then the first occurrence of x ends up being highlighted like it's a function declaration.

@raichoo
Copy link
Member

raichoo commented May 10, 2016

Yep, that is known. I don't see a way to fix this other than putting parentheses around this like so:

(x :: Int) <- readLn

VimL's ability to highlight based on context is very limited.

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