fix off by one inside

This commit is contained in:
j 2013-05-20 19:19:35 +00:00
parent 2560d503d7
commit 58a45d1f15

View file

@ -34,7 +34,7 @@ for f in files:
if i >= 3 and tokens[i - 3]['value'] + tokens[i - 2]['value'] \ if i >= 3 and tokens[i - 3]['value'] + tokens[i - 2]['value'] \
+ tokens[i - 1]['value'] + tokens[i]['value'] == 'Ox._(': + tokens[i - 1]['value'] + tokens[i]['value'] == 'Ox._(':
inside = True inside = True
level = 0 level = 1
elif inside: elif inside:
if token['value'] == '(': if token['value'] == '(':
level +=1 level +=1