tree-sitter / tree-sitter-haskell

Haskell grammar for tree-sitter.
MIT License
157 stars 37 forks source link

"finally" is highlighted like a language keyword #118

Open MaxiLambda opened 8 months ago

MaxiLambda commented 8 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 8 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).