From: Kevin Brown Date: Fri, 15 May 2020 00:15:15 +0000 (-0400) Subject: Handle undocumented whitespace parsing in variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27d6eeba579e70005bb4591c5a38faea7502905f;p=thirdparty%2Fjinja.git Handle undocumented whitespace parsing in variables --- diff --git a/grammar.ebnf b/grammar.ebnf index 5960a1a6..70201d88 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -148,11 +148,13 @@ variable_expression ; variable_open = - @:"{{" {SP}* + | @:"{{" {SP}* + | {SP}* @:"{{-" {SP}* ; variable_close = - {SP}* @:"}}" + | {SP}* @:"}}" + | {SP}* @:"-}}" {SP}* ; variable_identifier