GNOME Bugzilla – Bug 742902
Python exception color scheme is suboptimal
Last modified: 2015-01-20 03:47:32 UTC
When using the default Builder color scheme and writing python code, Builder uses the same shade of green for `except` (the keyword) and (for example) `KeyError` (the exception name). This is a bit subpoptimal in my opinion, and most other color schemes and text editors I've used color these differently. Can this be changed?
If it is different in Gedit, then it can be changed. Some things, though, need to be fixed in the language specifications. A bunch of style elements will ultimately reference the same color (sometimes). I know it was sort of an issue for C with a few things I wanted.
gedit colors the word `except` in red, and the exception name in green if it's a built-in exception (and not a custom exception), so yes, it's different. I don't have any recommendation / idea to what colors Builder should use in this case tho.
Created attachment 294940 [details] [review] style: improve Builder style scheme for Python We are going to have to do a lot of custom tweaks like this per language I presume. Still lot's to do, but this is a start.
Attachment 294940 [details] pushed as 45a9ddc - style: improve Builder style scheme for Python