I edited one of gedit's language files (syntax highlighting) and – to test the changes – changed the language of an open file to another one and then back. I did this a couple of times, but the last time, gedit crashes (and made rsyslogd crash in the process).
I tried to reopen the file, but gedit immediately crashes. This is what I've tried:
Since I changed the syntax syntax highlighting, I tried opening files with the same extension.
I tried deleting lines from the file that may be affected by the changes.
Works if the file is empty, but doesn't work if I leave even a single character.
I tried renaming the file in case gedit "remembers" something about it.
I tried copying the file with Nautilus and opening the new file.
I tried copying and pasting the contents from the file into another one and opening the new file.
I tried copying the file from the command line and opening the new file.
Any ideas what could have caused this and how to fix it properly?