This commit is contained in:
rolux 2012-05-27 12:59:15 +02:00
parent 4568cba7b6
commit e556447d1b

View file

@ -104,7 +104,7 @@ def tokenize(source):
else: else:
token = tokens[i] token = tokens[i]
is_regexp = ( is_regexp = (
token['type'] == 'identifier' and token['value'] in KEYWORDS token['type'] == 'identifier' and token['value'] in KEYWORD
) or ( ) or (
token['type'] == 'operator' and not token['value'] in ['++', '--', ')', ']', '}'] token['type'] == 'operator' and not token['value'] in ['++', '--', ')', ']', '}']
) )