Wilfred Hughes
Wilfred Hughes
I think this can be closed now that #12 is merged.
Duplicate of #14 I think, which is now fixed.
Would you like to submit a PR?
Agreed, I'm open to PRs if you'd like to work on this :)
This is intentional I'm afraid. Difftastic is a syntactic differ, and semantic information about which string literals are equivalent are out of scope. In some languages, single-quoted strings and double-quoted...
@eduard93 you should be able to change what's considered the content of the Atom when it's a string here: https://github.com/Wilfred/difftastic/blob/b88b4056203cdd3075cd341595411195671a163b/src/parse/syntax.rs#L411 If it's an AtomKind::String, drop the first and last characters...
Thinking about this some more, I think this is a worthwhile addition, but language configurations should opt-in to it.
Thanks for the pull request, and the clear explanation! This sounds like a regression from 8c004be87b5553809d1d865fc76adb754c2c3b55.
Fixed: https://github.com/Wilfred/difftastic/issues/688#issuecomment-2241316356 Thanks for the PR and the helpful discussion!
Hmm, the pull request fixes the bad_left/right case with colons, but not the go.sum.txt case.