Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_text/text_format_py.c
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "yield", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "yield", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| if (i == 0 || text_check_identifier(string[i])) | if (i == 0 || text_check_identifier(string[i])) | ||||
| return -1; | return -1; | ||||
| return i; | return i; | ||||
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "class", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "class", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| if (i == 0 || text_check_identifier(string[i])) | if (i == 0 || text_check_identifier(string[i])) | ||||
| return -1; | return -1; | ||||
| return i; | return i; | ||||
| Context not available. | |||||