tiny thing.
This commit is contained in:
parent
d1b17df38c
commit
af451bc530
|
@ -128,7 +128,7 @@
|
|||
return size;
|
||||
}, this);
|
||||
return this.scanTokens(__bind(function(prev, token, post, i) {
|
||||
var _c, after, before, idx, len, open, size, tag;
|
||||
var _c, after, before, idx, len, open, tag;
|
||||
tag = token[0];
|
||||
len = stack.length - 1;
|
||||
before = this.tokens[i - 2];
|
||||
|
@ -136,8 +136,7 @@
|
|||
open = stack[len] > 0;
|
||||
if ((tag === 'TERMINATOR' && !((after && after[0] === ':') || (post && post[0] === '@' && this.tokens[i + 3] && this.tokens[i + 3][0] === ':'))) || (running && tag === ',' && post && (!('IDENTIFIER' === (_c = post[0]) || 'STRING' === _c || '@' === _c)))) {
|
||||
running = false;
|
||||
size = closeBrackets(i);
|
||||
return size;
|
||||
return closeBrackets(i);
|
||||
} else if (include(EXPRESSION_START, tag)) {
|
||||
stack.push(tag === '{' ? 1 : 0);
|
||||
if (tag === '{' && post && post[0] === 'INDENT') {
|
||||
|
|
|
@ -132,8 +132,7 @@ exports.Rewriter = class Rewriter
|
|||
if (tag is 'TERMINATOR' and not ((after and after[0] is ':') or (post and post[0] is '@' and @tokens[i + 3] and @tokens[i + 3][0] is ':'))) or
|
||||
(running and tag is ',' and post and (post[0] not in ['IDENTIFIER', 'STRING', '@']))
|
||||
running = no
|
||||
size = closeBrackets(i)
|
||||
return size
|
||||
return closeBrackets(i)
|
||||
else if include EXPRESSION_START, tag
|
||||
stack.push(if tag is '{' then 1 else 0)
|
||||
return 2 if tag is '{' and post and post[0] is 'INDENT'
|
||||
|
|
Loading…
Reference in New Issue