WIP add heredoc templates; only EOF marker at the moment

This commit is contained in:
mhoffm
2021-06-21 22:04:28 +02:00
parent d57a44c2c3
commit 5a58000ba1
7 changed files with 12426 additions and 10739 deletions

View File

@@ -426,6 +426,42 @@
]
}
},
{
"type": "heredoc_start",
"named": true,
"fields": {}
},
{
"type": "heredoc_template",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "heredoc_identifier",
"named": true
},
{
"type": "heredoc_start",
"named": true
},
{
"type": "template_directive",
"named": true
},
{
"type": "template_interpolation",
"named": true
},
{
"type": "template_literal",
"named": true
}
]
}
},
{
"type": "index",
"named": true,
@@ -616,6 +652,10 @@
"multiple": false,
"required": true,
"types": [
{
"type": "heredoc_template",
"named": true
},
{
"type": "quoted_template",
"named": true
@@ -792,6 +832,14 @@
"type": "<",
"named": false
},
{
"type": "<<",
"named": false
},
{
"type": "<<-",
"named": false
},
{
"type": "<=",
"named": false
@@ -848,6 +896,10 @@
"type": "for",
"named": false
},
{
"type": "heredoc_identifier",
"named": true
},
{
"type": "identifier",
"named": true