Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2010-06-18 00:56:36 +0400
committerDaniel Salazar <zanqdo@gmail.com>2010-06-18 00:56:36 +0400
commit557f0525eaeb2e093a48915426d90fa17758b1b6 (patch)
tree954f0a984ad389145827ddf44e532b837456bb40 /source
parent8c031f22b923df272f20578bcc6a39878303e9cb (diff)
Added sintax coloring for None
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_text/text_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c
index 3a891a66107..873deb30511 100644
--- a/source/blender/editors/space_text/text_draw.c
+++ b/source/blender/editors/space_text/text_draw.c
@@ -233,6 +233,9 @@ static int find_bool(char *string)
/* Check for "True" */
else if(string[0]=='T' && string[1]=='r' && string[2]=='u' && string[3]=='e')
i = 4;
+ /* Check for "None" */
+ else if(string[0]=='N' && string[1]=='o' && string[2]=='n' && string[3]=='e')
+ i = 4;
/* If next source char is an identifier (eg. 'i' in "definate") no match */
if(i==0 || text_check_identifier(string[i]))
return -1;