Commit 12863382 authored by Raymond Hettinger's avatar Raymond Hettinger

Limit which operators get colorized

parent 498734ea
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment