Skip to content
Myr

Grammar.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 51db6c9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/compiler.py+1 added-1 removed
1087 unmodified lines
1088 if 'loop' not in aliases and 'loop' in find_undeclared(1089 node.iter_child_nodes(only=('else_', 'test')), ('loop',)):1090 self.writeline("l_loop = environment.undefined(%r, name='loop')" %1091 ("'loop' is undefined. the filter section of a loop as well "1092 "as the else block doesn't have access to the special 'loop'"1092 "as the else block don't have access to the special 'loop'"1093 " variable of the current loop. Because there is no parent "1094 "loop it's undefined. Happened in loop on %s" %1095 self.position(node)))1096
556 unmodified lines