MightyCreak / diffuse

Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.
http://mightycreak.github.io/diffuse/
GNU General Public License v2.0
265 stars 45 forks source link

Fix #98: Implement Rust highlighting support #99

Closed alopatindev closed 1 year ago

MightyCreak commented 2 years ago

Hey @alopatindev !

What's the status on your PR ?

alopatindev commented 2 years ago

Thanks for noticing the PR!

It works for non-exotic code. Lifetimes highlighting is not implemented yet. I hope I'll make more progress soon.

alopatindev commented 2 years ago

Multiline strings, macros, character literals are also unimplemented.

I'll appreciate any help. I updated https://github.com/MightyCreak/diffuse/issues/98 with source code example.

MightyCreak commented 1 year ago

I did a pass and added support for various comments, chars and strings syntaxes.

Since the Rust language is becoming more and more used lately, I think I'll push it as is, even if it's not feature-complete, and hope that the community will jump in to fix the different issues.

Also, it would be interesting to see if a more modern GTK widget (like the one used in GNOME Builder) could bring syntax colorization without us having to create a syntax config for each language out there.