From: Kevin Date: Thu, 14 May 2020 03:04:32 +0000 (-0400) Subject: Support filters being call chained X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a776bf469ab7b6b9c88cbb848465500be742fd8;p=thirdparty%2Fjinja.git Support filters being call chained Previously filters were not treated the same as variable, as a result it was not possible to call the result of a filter. Since filters are treated as regular variable and therefore can be called any number of times, this change was necessary to allow them to be parsed the same way. --- diff --git a/grammar.ebnf b/grammar.ebnf index 1939e5e0..34b8897f 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -334,13 +334,8 @@ variable_filter "|" {SP}* @:filter ; filter = - name:IDENTIFIER - [arguments:filter_parameters] - ; - -filter_parameters - = - "(" @:variable_accessor_call_parameters ")" + variable:IDENTIFIER + accessors:{ variable_accessor_call }* ; comment_expression