diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-05-16 07:57:43 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-05-16 07:57:43 +0400 |
commit | 9306ff787e040e3e9b8bc8da7a5cb0efca189325 (patch) | |
tree | 5a1b52815efa96820749a3f6a4ce2cb45638c315 /source/blender/src/drawtext.c | |
parent | 70c0f60df584240a8286e563402c3bf979ac4042 (diff) |
Corrected the python keywords list for syntax highlighting (it was missing "and" and "break").
Used the official list: http://docs.python.org/ref/keywords.html
While "as" is not a keyword, it is (should be) always used as such, so I've added it to the list too.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index 144938b36ad..1cb82581e9f 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -1981,11 +1981,13 @@ int check_bracket(char *string) static int check_builtinfuncs(char *string) { - int number = 22, a = 0; + int number = 30, a = 0; - char builtinfuncs[][11] = {"continue", "del", "elif", "else", "except", "exec", - "for", "global", "if", "in", "is", "lambda", "not", "or", "pass", - "print", "raise", "return", "while", "yield", "from", "import"}; + char builtinfuncs[][11] = {"and", "as", "assert", "break", "class", "continue", "def", + "del", "elif", "else", "except", "exec", "finally", + "for", "from", "global", "if", "import", "in", + "is", "lambda", "not", "or", "pass", "print", + "raise", "return", "try", "while", "yield"}; for( a = 0; a < number; a++) { if(!strcmp(builtinfuncs[a], string)) |