haskell-vim icon indicating copy to clipboard operation
haskell-vim copied to clipboard

Incorrect highlighting of type annotated monadic bound variable

Open andrewthad opened this issue 9 years ago • 1 comments

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.

andrewthad avatar Apr 27 '16 16:04 andrewthad

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.

raichoo avatar May 10 '16 18:05 raichoo