Limit which operators get colorized

This commit is contained in:
Raymond Hettinger 2012-07-01 00:37:05 -07:00
parent 9b8ede60c1
commit e4870b5117
1 changed files with 1 additions and 1 deletions

View File

@ -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'