Python: Escape enum member names if they correspond to a Python keyword (#4772)

* Python: Generated enum member names are now escaped if they correspond to a Python keyword.

* Keyword list in Python generator is now a const char* instead of an std::string array.

* Moved static functions and keyword list of Python generator into the PythonGenerator class.

* Python generator escapes keyword identifiers in all definitions.
This commit is contained in:
Michael Seifert 2018-06-08 19:55:19 +02:00 committed by Wouter van Oortmerssen
parent ab3b721a54
commit a96f2bd6ca
1 changed files with 623 additions and 578 deletions

File diff suppressed because it is too large Load Diff