New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improperly diffing of words #121
Comments
I guess this is just an oddity of the longest common sub-string approach: it matches /= "/ from within /fill = "grey"/ with /= "/ from within /y = "Count"/ |
I think that in this case it is better to build distinctions in 2 passes -- at first in the lines, and then in lines |
Figuring out behaviour for I think I should probably do two things:
I don't think (contra the framing in the issue here) that |
I think that this is the best strategy; current behavior then could be the "unknown" language tokenizer. Actually, jsdiff is working that way, just the tokenizer tries to fit of everyone needs, which could be good in one situations and bad in other. |
Given original text of:
with a final of:
get the following when diff'ing by words
it should instead just have red removal for the
fill="grey"
on line 2, with thelabs
portion being all greenThe text was updated successfully, but these errors were encountered: