]> git.ipfire.org Git - thirdparty/jinja.git/commit
Support "in" operator in grammar
authorKevin <kevin@kevin-brown.com>
Tue, 12 May 2020 01:45:43 +0000 (21:45 -0400)
committerKevin <kevin@kevin-brown.com>
Tue, 12 May 2020 01:45:43 +0000 (21:45 -0400)
commit9b2bee5f5e10825b0d7f32cdb746aa94863039ad
tree785ececdaade910beea0b30518ae535b519a10c8
parent6c179cf714cbd722dd3e4a883edd500d6a29788a
Support "in" operator in grammar

This changes the previous comparison operations from being marked
as solely comparion expressions and expands them out to be generation
operator expressions. This allows us to easily support the "in"
operator, which in the current Jinja parser is handled exactly the
same as the other operations, but it does require us to special case
the automated conversion of the "not ... in" expression to a "notin"
expression.
grammar.ebnf