From: Kevin Date: Sun, 10 May 2020 14:42:21 +0000 (-0400) Subject: Properly parse with targets X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9f327c2ee544ef266afce990ececf9da914cddf;p=thirdparty%2Fjinja.git Properly parse with targets The targets of with expressions (the variables to load) should be properly parsed as a variable using the same load logic which is used in other areas of the parser. --- diff --git a/new_parser.py b/new_parser.py index 8eec89cd..fee8a4a4 100644 --- a/new_parser.py +++ b/new_parser.py @@ -62,7 +62,7 @@ def parse_block_with(ast): raise targets.append(parameter['key']) - values.append(parameter['value']) + values.append(parse_variable(parameter['value'])) with_node.targets = targets with_node.values = values