difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

fish: init

Open MarcelCoding opened this issue 7 months ago • 3 comments

Add supports for the fish scripting language.

https://fishshell.com/

I am not completely sure if atom_nodes and delimiter_tokens are correct. But it seems to be working for me.

Tested using the diff of this PR: https://github.com/pure-fish/pure/pull/375

MarcelCoding avatar Jun 11 '25 16:06 MarcelCoding

Hello, I'm pure.fish lead dev and was looking for a Fish support PR. What a nice surprise to see you tested on it 😃 Can I help?

edouard-lopez avatar Nov 17 '25 13:11 edouard-lopez

idk, I've just took the opportunity to rebase this PR. Maybe you can help with my open questions from the PR description.

MarcelCoding avatar Nov 17 '25 16:11 MarcelCoding

The tree-sitter wiki mention a Fish parser https://github.com/ram02z/tree-sitter-fish

The doc on adding a parser mention how to check you set the correct values for atoms and delimiters : https://github.com/Wilfred/difftastic/blob/cc064349acc283de01b24711349d47608e127442/manual/src/adding_a_parser.md?plain=1#L68-L70

edouard-lopez avatar Nov 26 '25 18:11 edouard-lopez