I created a short python script to find all potential duplicate scopes in a tmTheme file.
This can be highly useful when cleaning up a color scheme.
Note: This is obviously not a plugin, yet may help to develop color schemes. I found the category ‘Plugin Announcements’ most suitable.
Usage:
python tmtheme_deduper.py /path/to/Random.tmTheme
Then manually search in the respective file and decide which scopes to remove manually.
I do not make any claim about its accuracy, indeed it gives some false positives as far as I can say.
Still, I consider it useful enough to let you folks know.
Likely you are more knowledgeable in the realms of color scheme than me, maybe you find ways to further improve the script.
https://gist.github.com/bfelder/d9048169c629b02ece018146312d1d0f