]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Name contents of raw blocks
authorKevin Brown <kevin@kevin-brown.com>
Fri, 8 May 2020 23:36:10 +0000 (19:36 -0400)
committerKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 01:50:06 +0000 (21:50 -0400)
This will also strip the open/close blocks from the AST which cleans
up the final part of it.

tatsu_grammar.txt

index a62fc695d95bb45d92e6971190b6764ed526f8b0..b93c7e29e60327bf960fae7da55571a9b9ca83a8 100644 (file)
@@ -23,7 +23,7 @@ expression
 raw_block_expression\r
     =\r
     raw_block_start\r
-    { !raw_block_end CHAR }*\r
+    raw:{ !raw_block_end CHAR }*\r
     raw_block_end\r
     ;\r
 \r