use dynamic precedence to fix 'is' and allow not not

This commit is contained in:
danhanson committed 2026-09-11 04:21:08 -05:00
1 parent 9701fab04a
commit b239bf6509
5 files changed
+40156 -39925

No files matched your search

+146
View File
@@ -182,3 +182,149 @@ If Is Not None
(template
(content))))
(content))
==================
If Is
==================
{% if x is y %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier))))
(binaryOperator)
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))
==================
If Is Not
==================
{% if x is not y %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier))))
(binaryOperator)
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))
==================
If Is Not Not
==================
{% if x is not not y %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier))))
(binaryOperator)
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))
==================
If With A Repeated Not
==================
{% if not not x %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))
==================
If Not Before A Name Beginning With In
==================
{% if not in_stock %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))
==================
If Is Before A Name Beginning With Not
==================
{% if x is nothing %}a{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier))))
(binaryOperator)
(filtered_value
(value
(variable_attribute
(identifier)))))
(template
(content))))
(content))