Removing duplicate 'CATCH'
This commit is contained in:
parent
a48ca260bd
commit
f33517368e
|
@ -230,7 +230,7 @@
|
||||||
tokens.splice(i, 0, generate('}', '}'));
|
tokens.splice(i, 0, generate('}', '}'));
|
||||||
return i += 1;
|
return i += 1;
|
||||||
};
|
};
|
||||||
if (inImplicitCall() && (tag === 'IF' || tag === 'TRY' || tag === 'FINALLY' || tag === 'CATCH' || tag === 'CLASS' || tag === 'SWITCH' || tag === 'CATCH')) {
|
if (inImplicitCall() && (tag === 'IF' || tag === 'TRY' || tag === 'FINALLY' || tag === 'CATCH' || tag === 'CLASS' || tag === 'SWITCH')) {
|
||||||
stack.push([
|
stack.push([
|
||||||
'CONTROL', i, {
|
'CONTROL', i, {
|
||||||
ours: true
|
ours: true
|
||||||
|
|
|
@ -180,7 +180,7 @@ class exports.Rewriter
|
||||||
|
|
||||||
# Don't end an implicit call on next indent if any of these are in an argument
|
# Don't end an implicit call on next indent if any of these are in an argument
|
||||||
if inImplicitCall() and tag in ['IF', 'TRY', 'FINALLY', 'CATCH',
|
if inImplicitCall() and tag in ['IF', 'TRY', 'FINALLY', 'CATCH',
|
||||||
'CLASS', 'SWITCH', 'CATCH']
|
'CLASS', 'SWITCH']
|
||||||
stack.push ['CONTROL', i, ours: true]
|
stack.push ['CONTROL', i, ours: true]
|
||||||
return forward(1)
|
return forward(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue