Fix call argument parsing

This temporarily break how `{% call %}` blocks work when arguments
are passed into them because it did not work consistently before. It
only worked for a single argument being passed in because of how
conditional expressions stripped out the parentheses if they were
present. Now they are properly captured but the parser does not yet
put them into the correct location within the Jinja AST.
This commit is contained in:
Kevin Brown 2020-05-14 23:34:06 -04:00
parent 2c53564fa1
commit 4d39c1693f

View File

@ -55,7 +55,9 @@ block_expression_single
block_start
=
block_open !("end") name:IDENTIFIER {SP}* parameters:[ block_parameters ] {SP}* block_close
block_open !("end") name:IDENTIFIER [ "(" name_call_parameters:variable_accessor_call_parameters ")" ]
[ {SP}+ parameters:block_parameters ]
{SP}* block_close
;
block_end