From: Kevin Date: Tue, 12 May 2020 01:11:32 +0000 (-0400) Subject: Simplify variable values in grammars X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=983f4805328752c7fd028e9e5ea2a82de740897f;p=thirdparty%2Fjinja.git Simplify variable values in grammars Now that variable identifers are able to be used as conditional expressions, we can just specify that variable expressions in the grammar are looking for a conditional expression as the name of the variable. --- diff --git a/grammar.ebnf b/grammar.ebnf index f51d34ce..8d37f809 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -134,7 +134,7 @@ block_parameter_value_only variable_expression = - variable_open type:`variable` name:( conditional_expression | variable_identifier ) variable_close + variable_open type:`variable` name:conditional_expression variable_close ; variable_open =