   # The lexer has tagged the opening parenthesis of an indexing operation call.
   # Match it with its paired close.
   closeOpenIndexes: ->
-    @scanTokens (token, i) =>
+    @scanTokens (token, i) ->
       if token[0] is 'INDEX_START'
         condition = (token, i) -> token[0] in [']', 'INDEX_END']
         action    = (token, i) -> token[0] = 'INDEX_END'

  ensureBalance: (pairs) ->
    levels   = {}
    openLine = {}
    @scanTokens (token, i) =>
      for pair in pairs
        [open, close] = pair
        levels[open] or= 0

  # Massage newlines and indentations so that comments don't have to be
  # correctly indented, or appear on a line of their own.
  adjustComments: ->
    @scanTokens (token, i) ->
      return 1 unless token[0] is 'HERECOMMENT'
      [before, prev, post, after] = [@tokens[i - 2], @tokens[i - 1], @tokens[i + 1], @tokens[i + 2]]
      if after and after[0] is 'INDENT'
