From e12354c4c5850864f925d22f53ec31578384bc63 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 30 Dec 2012 01:26:31 +0000 Subject: add syntax highlighting color for symbols --- source/blender/editors/space_text/text_format_py.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 02b67c32052..a78dabbfb9b 100644 --- a/source/blender/editors/space_text/text_format_py.c +++ b/source/blender/editors/space_text/text_format_py.c @@ -127,8 +127,8 @@ static int txtfmt_py_find_decorator(const char *string) { if (string[0] == '@') { int i = 1; - /* whitespace is ok '@ foo' */ - while (string[i] == '\t' || string[i] == ' ') { + /* Whitespace is ok '@ foo' */ + while (text_check_whitespace(string[i])) { i++; } while (text_check_identifier(string[i])) { -- cgit v1.2.3