GNOME Bugzilla – Bug 731608
highlight patch reject files
Last modified: 2015-06-25 13:21:10 UTC
Reject files from patch (*.rej) would be nice to highlight the same way as other diffs. They have the special type file/x-reject so they should be simple enough to identify.
A first step would be to write a .lang file and post it on the wiki: https://wiki.gnome.org/Projects/GtkSourceView/LanguageDefinitions
It's not a new language. It's the same as any diff. You just need to connect the mime type to the GtkSourceView language.
Then adding the mime type and the glob to diff.lang should work fine.
Created attachment 306080 [details] [review] suggested patch
Review of attachment 306080 [details] [review]: It's better to also add the mime type. For the patch, it's easier for us if we have a patch created with the 'git format-patch' command, so we have the commit message and author.
Created attachment 306100 [details] [review] suggested patch Updated version. Also available in https://gitlab.com/mcepl/gtksourceview.git as branch rej-diff.
Pushed: https://git.gnome.org/browse/gtksourceview/commit/?id=049770cd73fbe28b3e1576a1f9dfedbc678cd326