GNOME Bugzilla – Bug 617135
Improved Python
Last modified: 2014-02-06 14:05:50 UTC
Created attachment 159833 [details] [review] Proposed patch The attached patch adds coloring to modules, functions and classes.
Comment on attachment 159833 [details] [review] Proposed patch The patch looks good, but unfortunately it is outdated. The python.lang file is now in data/language-specs/. Please also provide the patch with the 'git format-patch' command, so we have the commit message.
Sorry, I don't really have time to do that. I hope you can understand, it's been a couple of years. Feel free to adapt my changes.
Created attachment 268275 [details] [review] Improve Python syntax highlighting - Highlighting for the function name and class name, also in the "import from". - Highlighting for decorators. Thanks to Patryk Zawadzki for the initial patch.
> also in the "import from" I mean in the "from ... import ...". The above patch can be tested with the following Python code: from itertools import count @viking_chorus def menu_item(): print("spam") class blah: def foo: pass
Pushed: https://git.gnome.org/browse/gtksourceview/commit/?id=ec24e9530f8cace2ab5c578eb0118d79341a2faf