add cache

This commit is contained in:
danhanson committed 2026-09-07 15:20:21 -05:00
1 parent 7e71c5e3ae
commit 709a33f52d
8 files changed
+40910 -35539

No files matched your search

+196
View File
@@ -542,6 +542,10 @@
"type": "SYMBOL",
"name": "block_group"
},
{
"type": "SYMBOL",
"name": "cache_group"
},
{
"type": "SYMBOL",
"name": "comment_group"
@@ -1293,6 +1297,194 @@
}
]
},
"cache_group": {
"type": "SEQ",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "{%"
},
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "BLANK"
}
]
},
{
"type": "FIELD",
"name": "tag",
"content": {
"type": "STRING",
"value": "cache"
}
},
{
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "SYMBOL",
"name": "filtered_value"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "string"
}
]
}
]
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "SYMBOL",
"name": "filtered_value"
}
]
}
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "using="
},
{
"type": "SYMBOL",
"name": "filtered_value"
}
]
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "%}"
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "template"
},
{
"type": "BLANK"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "{%"
},
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "BLANK"
}
]
},
{
"type": "FIELD",
"name": "tag",
"content": {
"type": "STRING",
"value": "endcache"
}
},
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "[ \\t\\r\\n]+"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "%}"
}
]
}
]
},
"comment_group": {
"type": "SEQ",
"members": [
@@ -5423,6 +5615,10 @@
"type": "STRING",
"value": "endblock"
},
{
"type": "STRING",
"value": "endcache"
},
{
"type": "STRING",
"value": "endcomment"
+58
View File
@@ -11,6 +11,10 @@
"type": "block_group",
"named": true
},
{
"type": "cache_group",
"named": true
},
{
"type": "comment_group",
"named": true
@@ -246,6 +250,48 @@
]
}
},
{
"type": "cache_group",
"named": true,
"fields": {
"tag": {
"multiple": true,
"required": true,
"types": [
{
"type": "cache",
"named": false
},
{
"type": "endcache",
"named": false
}
]
}
},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "filtered_value",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "string",
"named": true
},
{
"type": "template",
"named": true
}
]
}
},
{
"type": "comment_group",
"named": true,
@@ -1928,6 +1974,10 @@
"type": "by",
"named": false
},
{
"type": "cache",
"named": false
},
{
"type": "capfirst",
"named": false
@@ -2028,6 +2078,10 @@
"type": "endblock",
"named": false
},
{
"type": "endcache",
"named": false
},
{
"type": "endcomment",
"named": false
@@ -2448,6 +2502,10 @@
"type": "urlizetrunc",
"named": false
},
{
"type": "using=",
"named": false
},
{
"type": "utc",
"named": false
+40396 -35538
View File
File diff suppressed because it is too large. Load diff