]> git.ipfire.org Git - thirdparty/jinja.git/commit
Variable filters should not capture whitespace
authorKevin Brown <kevin@kevin-brown.com>
Sat, 9 May 2020 03:53:44 +0000 (23:53 -0400)
committerKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 01:50:06 +0000 (21:50 -0400)
commit266caac0ee9354da799741d96c3412eeaf55b308
treeb67c57ed32e16d037acc824b9f27ad8a1a787c3e
parentae85164da68c3bf4f4ee8d2d1b4d4190a3135cf3
Variable filters should not capture whitespace

This should have no functional difference on the behaviour of the
parser but it does make filters consistent with other areas where
it expects to start with the first character instead of starting
with whitespace.

This also changes the test script to time the individual steps so
we can confirm that the grammar compilation is considerably slower
than the parsing of the template using the grammar.
tatsu_grammar.txt
test_tatsu.py