'19819 -- Make sure the correct token is highlighted for
FilterExpression errors.'

def test_compile_filter_expression_error(self):

    engine = Engine(debug=True)
    msg = "Could    not    parse    the    remainder:    '@bar'    from    'foo@bar'"
    with self.assertRaisesMessage(TemplateSyntaxError, msg) as e:
        engine.from_string('{%    if    1    %}{{    foo@bar    }}{%    endif    %}')
    debug = e.exception.template_debug
    self.assertEqual((debug['start'], debug['end']), (10, 23))
    self.assertEqual(debug['during'], '{{    foo@bar    }}')
