← All ideas
  • Published 4 Jun 2022

Syntax highlighting for default functions

Python 3.10 was recently released and it has new soft keywords (match case) and they kind of implemented them (waiting for release developer.blender.org/rBc6ed879f9aa7cd863f146cc7104f16cfe8a73e8a ). And I remembered that blender has no highlighting for default functions.

Syntaxis Highlighting.png

Highlighting in PyCharm Syntaxis Highlighting PyCharm.png

I analyzed code a bit and realized that it's not so hard to implement, even though I'm not good at C, but I can a little bit with implementation of default functions structure and also I decided to split these structures into two types: txtfmt_py_default_functions, txtfmt_py_type_converters.

And it will be more correct to give for "txtfmt_py_default_functions" - purple color.

For "txtfmt_py_type_converters" - red. Syntaxis Highlighting New.png Here's half of all the work done (I think so), I hope this gets implemented:

drive.google.com/file/d/1VWL4nrYb9EGBSrP4Y9L8saMukuXYzW7U/view

Syntaxis HighlightingCode.png Syntaxis HighlightingCode2.png

100%

Development Status: Open

Upvote 7 Downvote 0
v.imran2018
4 Jun 2022

1 Comment

tintwotin

Much needed work here. Let me know if you need help creating and submitting a .diff.