diff options
-rwxr-xr-x | Tools/scripts/pycolorize.py | 2 |
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' |