diff -r 4a27b5ab2710 Lib/idlelib/ColorDelegator.py --- a/Lib/idlelib/ColorDelegator.py Wed Dec 14 18:40:35 2011 +0100 +++ b/Lib/idlelib/ColorDelegator.py Wed Dec 21 14:45:40 2011 -0600 @@ -15,7 +15,8 @@ def make_pat(): kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" builtinlist = [str(name) for name in dir(builtins) - if not name.startswith('_')] + if not name.startswith('_') and \ + name not in keyword.kwlist] # self.file = open("file") : # 1st 'file' colorized normal, 2nd as builtin, 3rd as string builtin = r"([^.'\"\\#]\b|^)" + any("BUILTIN", builtinlist) + r"\b" diff -r 4a27b5ab2710 Lib/idlelib/configDialog.py --- a/Lib/idlelib/configDialog.py Wed Dec 14 18:40:35 2011 +0100 +++ b/Lib/idlelib/configDialog.py Wed Dec 21 14:45:40 2011 -0600 @@ -199,7 +199,7 @@ ("'string'",'string'),('\n var1 = ','normal'),("'selected'",'hilite'), ('\n var2 = ','normal'),("'found'",'hit'), ('\n var3 = ','normal'),('list', 'builtin'), ('(','normal'), - ('None', 'builtin'),(')\n\n','normal'), + ('None', 'keyword'),(')\n\n','normal'), (' error ','error'),(' ','normal'),('cursor |','cursor'), ('\n ','normal'),('shell','console'),(' ','normal'),('stdout','stdout'), (' ','normal'),('stderr','stderr'),('\n','normal'))