   # Insert the missing braces here, so that the parser doesn't have to.
   addImplicitBraces: ->
     stack = []
+    start = null
     condition = (token, i) ->
       return false if 'HERECOMMENT' in [@tag(i + 1), @tag(i - 1)]
       {(i+1): one, (i+2): two, (i+3): three} = @tokens

  scanTokens: (block) ->
    {tokens} = this
    i = 0
    (i += block.call this, token, i, tokens) while token = tokens[i]
    true

  detectEnd: (i, condition, action) ->

      tag is ',' and one and
        one[0] not in ['IDENTIFIER', 'NUMBER', 'STRING', '@', 'TERMINATOR', 'OUTDENT', '(']
    action = (token, i) -> @tokens.splice i, 0, ['}', '}', token[2]]
    @scanTokens (token, i, tokens) ->
      if (tag = token[0]) in EXPRESSION_START
        stack.push [(if tag is 'INDENT' and @tag(i - 1) is '{' then '{' else tag), i]
