forked from bartvdbraak/blender
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.
This commit is contained in:
parent
70c0f60df5
commit
9306ff787e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user