]> git.ipfire.org Git - thirdparty/jinja.git/commit
Add line block pair checking
authorKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 02:17:46 +0000 (22:17 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 02:17:46 +0000 (22:17 -0400)
commitd760329966d04e390526daec4bb9d8121a70f3cf
treecb23fe28b6a2ea33b0b36da8490f81646df3fa5a
parent32a5f9312a28b3e23f32bdac752d0560416f9f07
Add line block pair checking

Similar to how it is done in regular Jinja blocks, line blocks will
now check to make sure that start and end blocks are properly paired
together. When they are not paired together, it will fall back to
parsing them separately like one would expect.
src/jinja2/new_parser.py