diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-30 05:26:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-30 05:26:31 +0400 |
commit | e12354c4c5850864f925d22f53ec31578384bc63 (patch) | |
tree | bc7966010e1f3d01e255bd56476bb71e3f10c0c0 /source/blender/editors/space_text/text_format_py.c | |
parent | 099d8c93904747fa39857684dce2bd228c3462eb (diff) |
add syntax highlighting color for symbols
Diffstat (limited to 'source/blender/editors/space_text/text_format_py.c')
-rw-r--r-- | source/blender/editors/space_text/text_format_py.c | 4 |
1 files changed, 2 insertions, 2 deletions
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])) { |