From: Kevin Brown Date: Fri, 15 May 2020 21:17:39 +0000 (-0400) Subject: Fix "not" expressions consuming variable starting with not X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f86503d13a230d6bf699ba0222031e338dffd19d;p=thirdparty%2Fjinja.git Fix "not" expressions consuming variable starting with not The `not` expression should have a space between the word "not" and the expression which is being negated. Otherwise it will incorrectly pick up things like "nothing" as "not thing" because it technically meets the criteria. --- diff --git a/grammar.ebnf b/grammar.ebnf index 7b498b55..127f5675 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -335,7 +335,7 @@ conditional_expression_parentheses conditional_expression_not = - "not" {SP}* not:conditional_expression + "not" {SP}+ not:conditional_expression ; conditional_expression_if