]> git.ipfire.org Git - thirdparty/jinja.git/commit
Add support for dot accessors to be numbers
authorKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 21:07:10 +0000 (17:07 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 21:07:10 +0000 (17:07 -0400)
commit639e8d2dff49b7453685fe65ef5ac9ab00dbe69c
tree7d74eacdac909cd02dfdd0b49abbcc1bdd3a4be2
parent1907179e060c32187388412e66e1b7c10aad5b15
Add support for dot accessors to be numbers

This is an interesting special case in the old parser where numbers
are allowed as dot accessors, but they are specifically convertred
to being an item accessor during the parsing phase. We now support
numbers being parsed for dot accessors in the new parser.
grammar.ebnf
src/jinja2/new_parser.py