diffuse icon indicating copy to clipboard operation
diffuse copied to clipboard

WIP: Fix #98: Implement Rust highlighting support

Open alopatindev opened this issue 3 years ago • 3 comments

alopatindev avatar Jun 23 '21 22:06 alopatindev

Hey @alopatindev !

What's the status on your PR ?

MightyCreak avatar Nov 18 '21 19:11 MightyCreak

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 avatar Nov 18 '21 21:11 alopatindev

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.

alopatindev avatar Nov 18 '21 22:11 alopatindev

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.

MightyCreak avatar Oct 24 '22 20:10 MightyCreak