Fix Text Editor highlight of assert and async
Due to the ordering of the checks, assert and async were not highlighted in the editor, even though they were in the list of keywords. Differential Revision: http://developer.blender.org/D15483
This commit is contained in:
parent
8358cc7963
commit
d175eb6c30
|
@ -59,9 +59,9 @@ static int txtfmt_py_find_builtinfunc(const char *string)
|
|||
/* clang-format off */
|
||||
|
||||
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, "as", 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, "case", len)) { i = len;
|
||||
|
|
Loading…
Reference in New Issue