]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Add optional modifiers for include statement
authorKevin <github@kevin-brown.com>
Tue, 21 May 2024 18:24:44 +0000 (14:24 -0400)
committerKevin <github@kevin-brown.com>
Tue, 21 May 2024 18:24:44 +0000 (14:24 -0400)
grammar/JinjaGrammar.g4

index 8f46b5b013a85475bc524939e7d9081d02b99ab0..f643d7076049fed328d55d0f887edbad91b1a3ec 100644 (file)
@@ -22,7 +22,10 @@ statement_include_context
     ;
 
 statement_include
-    : STATEMENT_ID_INCLUDE (SP statement_include_template_list)?
+    : STATEMENT_ID_INCLUDE
+        (SP statement_include_template_list)?
+        (SP STATEMENT_INCLUDE_IGNORE_MISSING)?
+        (SP statement_include_context)?
     ;
 
 block_statement_id