         (tag isnt 'INDENT' or
           (@tag(i - 2) not in ['CLASS', 'EXTENDS'] and @tag(i - 1) not in IMPLICIT_BLOCK and
           not ((post = @tokens[i + 1]) and post.generated and post[0] is '{')))
-    
-    action = (token, i) -> 
+
+    action = (token, i) ->
       @tokens.splice i, 0, ['CALL_END', ')', token[2]]
-      
+
     @scanTokens (token, i, tokens) ->
       tag     = token[0]
       noCall  = yes if tag in ['CLASS', 'IF']

  # Tag postfix conditionals as such, so that we can parse them with a
  # different precedence.
  tagPostfixConditionals: ->
    
    original = null
    
    condition = (token, i) -> 
      token[0] in ['TERMINATOR', 'INDENT']
      
    action = (token, i) ->
      original[0] = 'POST_' + original[0] if token[0] isnt 'INDENT'
    
    @scanTokens (token, i) ->
      return 1 unless token[0] is 'IF'
      original = token

  # The lexer has tagged the opening parenthesis of an indexing operation call.
  # Match it with its paired close.
  closeOpenIndexes: ->

    condition = (token, i) ->
      token[0] in [']', 'INDEX_END']

    action = (token, i) ->
      token[0] = 'INDEX_END'

    @scanTokens (token, i) ->
      @detectEnd i + 1, condition, action if token[0] is 'INDEX_START'
      1
