Skip to content

Function name with proceeding the underline sign is not highlighted. #1342

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

Closed
vonavi opened this issue May 28, 2016 · 1 comment · Fixed by #1345
Closed

Function name with proceeding the underline sign is not highlighted. #1342

vonavi opened this issue May 28, 2016 · 1 comment · Fixed by #1345

Comments

@vonavi
Copy link

vonavi commented May 28, 2016

Here is a little example, where function name at the last line is not highlighted (its face is default instead of haskell-definition-face):

isEmpty :: [Int] -> Bool
isEmpty [] = True
isEmpty _  = False

Best regards,
Vladimir.

@fice-t
Copy link
Contributor

fice-t commented May 28, 2016

@gracjan This is due to this commit ff84682

Another issue that commit causes is that the function name gets font-locked too soon:

is_empty$

When your cursor is where the $ is, then the is_ is font-locked, but the empty is not.

This also affects a function ending in an underscore. For example, mapM_ doesn't get font-locked anymore:

mapM_ :: Monad m => (a -> m b) -> [a] -> m ()
mapM_ f= foldr ((>>) . f) (return ())

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

Successfully merging a pull request may close this issue.

2 participants