]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Allow optional comma after block keyword parameters
authorKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 19:47:53 +0000 (15:47 -0400)
committerKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 19:47:53 +0000 (15:47 -0400)
It looks like this is only currently support within `{% with %}`
blocks in Jinja, instead of space-separating the parameters, but
this may also be happening in extensions as well.

grammar.ebnf

index 0738c4e8fa9f526ef0567ba76bc000f077ca4934..93e9417237b759cc211a935083475d0c324e36db 100644 (file)
@@ -110,6 +110,7 @@ block_parameter
 block_parameter_key_value\r
     =\r
     key:block_parameter_key {SP}* "=" {SP}* value:variable_accessor_call_parameter_value\r
+    [ {SP}* "," ]\r
     ;\r
 \r
 block_parameter_key\r