summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-07-01 07:37:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-07-01 07:37:05 (GMT)
commite4870b511796293b5e6cb82809ea035c54079e90 (patch)
tree8384df1fe9014fcbb62b3b8b76394c70323caeae /Tools
parent9b8ede60c1e8567ba769458089ae60807aa12c73 (diff)
downloadcpython-e4870b511796293b5e6cb82809ea035c54079e90.zip
cpython-e4870b511796293b5e6cb82809ea035c54079e90.tar.gz
cpython-e4870b511796293b5e6cb82809ea035c54079e90.tar.bz2
Limit which operators get colorized
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/pycolorize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/pycolorize.py b/Tools/scripts/pycolorize.py
index 6d43313..576d473 100755
--- a/Tools/scripts/pycolorize.py
+++ b/Tools/scripts/pycolorize.py
@@ -28,7 +28,7 @@ def colorize(source):
kind, prev_kind = '', kind
if tok_type == tokenize.COMMENT:
kind = 'comment'
- elif tok_type == tokenize.OP:
+ elif tok_type == tokenize.OP and tok_str[:1] not in '{}[](),.:;':
kind = 'operator'
elif tok_type == tokenize.STRING:
kind = 'string'