]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Test function single parameter should a variable
authorKevin <kevin@kevin-brown.com>
Thu, 14 May 2020 13:55:37 +0000 (09:55 -0400)
committerKevin <kevin@kevin-brown.com>
Thu, 14 May 2020 13:55:37 +0000 (09:55 -0400)
Previusly we were expecting it to be a conditional expression which
allowed it to swallow conditional expressions as if they were a single
variable. This fixes that issue so it only swallows variables.

.gitignore
grammar.ebnf

index 4ce044228d6afd029ea6caa367eb06a75f1a5a03..76e27f3382582a59fda7fc3a94ba9ba3707835cd 100644 (file)
@@ -22,4 +22,4 @@ htmlcov
 tatsu_jinja.json
 tatsu_jinja.py
 parsed_jinja.py
-test_tatsu.jinja
\ No newline at end of file
+test_template.jinja
\ No newline at end of file
index 34b8897f27306f431d5b24c842a3d904f77c6630..ec2d155774272e2abc6629aa2f66449fa94b977b 100644 (file)
@@ -303,7 +303,7 @@ conditional_expression_test
     [\r
         {SP}*\r
         !( (variable_tests_logical_operator | "is" | "else" ) {SP}* )\r
-        test_function_parameter:variable_accessor_call_parameter_value\r
+        test_function_parameter:variable_identifier\r
     ]\r
     ;\r
 \r