Wilfred / difftastic

a structural diff that understands syntax 🟥🟩
https://difftastic.wilfred.me.uk/
MIT License
19.94k stars 317 forks source link

Add support for PureScript #708

Open bernhard-herzog opened 2 months ago

bernhard-herzog commented 2 months ago

This adds support for PureScript using the tree-sitter grammar suggested in #674

The tree-sitter grammar for PureScript seems to have issues similar to the Haskell, in that the nodes for a qualified identifier like Data.Map do not include nodes for the periods. The code in this PR uses the same workaround as for Haskell, i.e. the relevant nodes are listed atom_nodes