tree-sitter / tree-sitter-haskell

Haskell grammar for tree-sitter.
MIT License
151 stars 36 forks source link

"finally" is highlighted like a language keyword #118

Open MaxiLambda opened 5 months ago

MaxiLambda commented 5 months ago

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 commented 5 months ago

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).