Skip to content
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

Add support for normal diff syntax #2321

Merged
merged 2 commits into from
Jan 29, 2023

Conversation

CosmicHorrorDev
Copy link
Contributor

There was already support for unified diff syntax, so this adds support for normal diff syntax as well. Test file was generated with the following

old.txt

A
A
B
C
D

new.txt

B
F
D
E
$ diff old.txt new.txt
1,2d0
< A
< A
4c2
< C
---
> F
5a4
> E

@jeanas jeanas merged commit fdb05f4 into pygments:master Jan 29, 2023
@jeanas
Copy link
Contributor

jeanas commented Jan 29, 2023

Everything looks good. Thank you.

@Anteru Anteru added this to the 2.15.0 milestone Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants