PyAPI: update keyword list

This commit is contained in:
Campbell Barton 2018-11-11 09:37:26 +11:00
parent 3756f920f4
commit 89c2ff31d9
3 changed files with 4 additions and 2 deletions

@ -62,6 +62,8 @@ static int txtfmt_py_find_builtinfunc(const char *string)
if (STR_LITERAL_STARTSWITH(string, "and", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "as", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "assert", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "async", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "await", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "break", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "continue", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "del", len)) i = len;

@ -425,7 +425,7 @@ static int rna_validate_identifier(const char *identifier, char *error, bool pro
*/
static const char *kwlist[] = {
/* "False", "None", "True", */
"and", "as", "assert", "break",
"and", "as", "assert", "async", "await", "break",
"class", "continue", "def", "del", "elif", "else", "except",
"finally", "for", "from", "global", "if", "import", "in",
"is", "lambda", "nonlocal", "not", "or", "pass", "raise",

@ -1003,7 +1003,7 @@ bool BPY_string_is_keyword(const char *str)
*/
const char *kwlist[] = {
"False", "None", "True",
"and", "as", "assert", "break",
"and", "as", "assert", "async", "await", "break",
"class", "continue", "def", "del", "elif", "else", "except",
"finally", "for", "from", "global", "if", "import", "in",
"is", "lambda", "nonlocal", "not", "or", "pass", "raise",