[Bf-blender-cvs] [d175eb6c30b] master: Fix Text Editor highlight of assert and async
Henrik Dick
noreply at git.blender.org
Mon Jul 18 23:34:32 CEST 2022
Commit: d175eb6c30b0eb9630669522c643debf6a183efd
Author: Henrik Dick
Date: Mon Jul 18 23:33:30 2022 +0200
Branches: master
https://developer.blender.org/rBd175eb6c30b0eb9630669522c643debf6a183efd
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
===================================================================
M source/blender/editors/space_text/text_format_py.c
===================================================================
diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c
index aa361f07932..28f536ffa98 100644
--- a/source/blender/editors/space_text/text_format_py.c
+++ b/source/blender/editors/space_text/text_format_py.c
@@ -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;
More information about the Bf-blender-cvs
mailing list