]> git.ipfire.org Git - thirdparty/jinja.git/commit
Properly handle signed variables
authorKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 19:03:57 +0000 (15:03 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Sat, 16 May 2020 19:03:57 +0000 (15:03 -0400)
commit94efd92a5908d481555d7e328681e7124aca43db
treee6f162fde91ca908b2292b5723f0e0d3137dafaa
parentc97786d9ddcce48d50c99e0330937022f98d0db8
Properly handle signed variables

Previously we were only handling signed numbers but we were handling
them as constants. Jinja implements a full system for unarary
operators that can be customized, so this switches the grammar and
the parser to use that system instead.
grammar.ebnf
src/jinja2/new_parser.py