This commit is contained in:
Jeremy Ashkenas
2013-03-17 19:27:16 +08:00
parent c44826acc7
commit 2f5b11b295
3 changed files with 18 additions and 3 deletions

View File

@@ -381,7 +381,9 @@ class exports.Rewriter
original = null
condition = (token, i) ->
token[0] in ['TERMINATOR', 'INDENT']
[tag] = token
[prevTag] = @tokens[i - 1]
tag is 'TERMINATOR' or (tag is 'INDENT' and prevTag not in SINGLE_LINERS)
action = (token, i) ->
if token[0] isnt 'INDENT' or (token.generated and not token.fromThen)