]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Add support for complex math expressions with +/-
authorKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 03:49:34 +0000 (23:49 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Fri, 15 May 2020 03:49:34 +0000 (23:49 -0400)
Support for complex math expressions with other operators will come
eventually.

grammar.ebnf

index 8041a539ba6abbd5b527b4a0863f9a9e753bf91e..b7ddf63c00045d8c0254ea18adb257d90a415e7a 100644 (file)
@@ -292,7 +292,7 @@ complex_expression_math1
     =\r
     left:variable_identifier\r
     {SP}* math_operator:complex_expression_math1_operations {SP}*\r
-    right:variable_identifier\r
+    right:conditional_expression\r
     ;\r
 \r
 complex_expression_math1_operations\r