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

"finally" is highlighted like a language keyword #118

Open
MaxiLambda opened this issue Mar 8, 2024 · 1 comment
Open

"finally" is highlighted like a language keyword #118

MaxiLambda opened this issue Mar 8, 2024 · 1 comment

Comments

@MaxiLambda
Copy link

The finally function is highlighted like a language keyword.

I would expect "finally" to have the same highlighting as any other function

module Test where


import Control.Exception (finally)

something :: IO ()
something = finally (putStrLn "1") (putStrLn "2")

Example picture of highlighting in neovim:
image

@tek
Copy link
Contributor

tek commented Mar 8, 2024

Neovim does not use the queries from this repo, but from nvim-treesitter.

You should be able to disable special highlighting for these keywords with:

highlight! link @keyword.exception Normal

or some other command (clear, concrete color).

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