Treat strict types in Haskell as atoms

This isn't ideal: it prevents a finegrained diff of syntax within a type, but it
beats claiming that the code is unchanged.

Fixes #607
pull/614/head
Wilfred Hughes 2023-12-28 19:24:35 +07:00
parent e39bef9611
commit c180fb52a9
2 changed files with 5 additions and 1 deletions

@ -4,7 +4,8 @@
Added support for Salesforce Apex.
Improved parsing of regex literals in Clojure.
Improved parsing of regex literals in Clojure and strictness
annotations in Haskell.
### Display

@ -453,8 +453,11 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig {
language,
atom_nodes: vec![
"qualified_variable",
// Work around https://github.com/tree-sitter/tree-sitter-haskell/issues/102
"qualified_module",
"qualified_constructor",
// Work around https://github.com/tree-sitter/tree-sitter-haskell/issues/107
"strict_type",
]
.into_iter()
.collect(),