tree-sitter / tree-sitter-haskell

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

Parse errors when using DerivingVia #76

Closed luc-tielen closed 2 years ago

luc-tielen commented 2 years ago

This happens to me when using neovim with nvim-treesitter.

Steps to reproduce:

  1. git clone https://github.com/luc-tielen/souffle-haskell
  2. open the file: "DerivingViaSpec.hs", notice the highlighting is not fully working
  3. in neovim: :TSPlaygroundToggle, errors show up in the AST.

Probably some uncovered case because it is using a lot of extensions/type-level features?

tek commented 2 years ago

ah, because it expects parentheses

tek commented 2 years ago

this should do it

tek commented 2 years ago

one character fix :)

luc-tielen commented 2 years ago

Verified that it works, thanks!