enforce key uniqueness on with expression, fix scanner.c

This commit is contained in:
danhanson committed 2026-09-07 20:33:43 -05:00
1 parent 6105fd9002
commit 356cc3a885
10 files changed
+53165 -53162

No files matched your search

+9
View File
@@ -438,3 +438,12 @@ Blocktrans Repeating An Option Of The Tag Before It
(blocktranslate_group
(content))
(content))
==================
Blocktrans With A Binding Twice
:error
==================
{% blocktrans with a=1 a=2 %}x{% endblocktrans %}
---
+9
View File
@@ -79,3 +79,12 @@ Csp Nonce Attr Rejects Repeated Keyword
(ERROR)
==================
Csp Nonce Attr With Media Twice
:error
==================
{% csp_nonce_attr media="a" media="b" %}
---
+2 -19
View File
@@ -162,31 +162,14 @@ Include With Only Before With
(content))
==================
Include With A Repeated Binding
Include With A Binding Twice
:error
==================
{% include "t.html" with a=1 a=2 %}
---
(template
(content)
(include
(filtered_value
(value
(literal
(string))))
variable: (identifier)
(filtered_value
(value
(literal
(number))))
variable: (identifier)
(filtered_value
(value
(literal
(number)))))
(content))
==================
Include Without A Name
+48
View File
@@ -59,3 +59,51 @@ With Multiple Variables
(identifier)))))
(content)))
(content))
==================
With A Binding Twice
:error
==================
{% with a=1 a=2 %}x{% endwith %}
---
==================
With A Binding Repeated Later
:error
==================
{% with a=1 b=2 a=3 %}x{% endwith %}
---
==================
With Repeating A Binding Of The Tag Before It
==================
{% with a=1 %}x{% endwith %}{% with a=2 %}y{% endwith %}
---
(template
(content)
(with_group
variable: (identifier)
(filtered_value
(value
(literal
(number))))
(template
(content)))
(with_group
variable: (identifier)
(filtered_value
(value
(literal
(number))))
(template
(content)))
(content))