aboutsummaryrefslogtreecommitdiff
path: root/src/node-types.json
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-14 22:22:41 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-14 22:22:41 +0200
commitbe988fbc200620bfff8657b7baf868234e899e13 (patch)
tree9089b4d1fd6aaaae08a69ac898dc6199bf164c87 /src/node-types.json
parent642d5264e0d7b3d3870d13c2cc4a04987ee65ab6 (diff)
Lots of changes once again!
Diffstat (limited to 'src/node-types.json')
-rw-r--r--src/node-types.json134
1 files changed, 106 insertions, 28 deletions
diff --git a/src/node-types.json b/src/node-types.json
index 0c5aa23..806fb1f 100644
--- a/src/node-types.json
+++ b/src/node-types.json
@@ -2,10 +2,31 @@
{
"type": "attr",
"named": true,
- "fields": {}
+ "fields": {
+ "name": {
+ "multiple": false,
+ "required": true,
+ "types": [
+ {
+ "type": "ident",
+ "named": true
+ }
+ ]
+ },
+ "value": {
+ "multiple": false,
+ "required": true,
+ "types": [
+ {
+ "type": "string",
+ "named": true
+ }
+ ]
+ }
+ }
},
{
- "type": "attrs",
+ "type": "attr_list",
"named": true,
"fields": {},
"children": {
@@ -30,24 +51,55 @@
{
"type": "class_attr",
"named": true,
- "fields": {}
- },
- {
- "type": "comment",
- "named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
- "type": "node",
+ "type": "ident",
"named": true
}
]
}
},
{
+ "type": "comment",
+ "named": true,
+ "fields": {
+ "attrs": {
+ "multiple": false,
+ "required": false,
+ "types": [
+ {
+ "type": "attr_list",
+ "named": true
+ }
+ ]
+ },
+ "body": {
+ "multiple": false,
+ "required": true,
+ "types": [
+ {
+ "type": "node_body",
+ "named": true
+ }
+ ]
+ },
+ "name": {
+ "multiple": false,
+ "required": false,
+ "types": [
+ {
+ "type": "ident",
+ "named": true
+ }
+ ]
+ }
+ }
+ },
+ {
"type": "document",
"named": true,
"fields": {},
@@ -69,32 +121,55 @@
{
"type": "id_attr",
"named": true,
- "fields": {}
- },
- {
- "type": "node",
- "named": true,
"fields": {},
"children": {
- "multiple": true,
+ "multiple": false,
"required": true,
"types": [
{
- "type": "attrs",
- "named": true
- },
- {
- "type": "node_body",
- "named": true
- },
- {
- "type": "node_name",
+ "type": "ident",
"named": true
}
]
}
},
{
+ "type": "node",
+ "named": true,
+ "fields": {
+ "attrs": {
+ "multiple": false,
+ "required": false,
+ "types": [
+ {
+ "type": "attr_list",
+ "named": true
+ }
+ ]
+ },
+ "body": {
+ "multiple": false,
+ "required": true,
+ "types": [
+ {
+ "type": "node_body",
+ "named": true
+ }
+ ]
+ },
+ "name": {
+ "multiple": false,
+ "required": true,
+ "types": [
+ {
+ "type": "ident",
+ "named": true
+ }
+ ]
+ }
+ }
+ },
+ {
"type": "node_body",
"named": true,
"fields": {},
@@ -118,11 +193,6 @@
}
},
{
- "type": "node_name",
- "named": true,
- "fields": {}
- },
- {
"type": "text",
"named": true,
"fields": {},
@@ -166,6 +236,14 @@
"named": false
},
{
+ "type": "ident",
+ "named": true
+ },
+ {
+ "type": "string",
+ "named": true
+ },
+ {
"type": "{",
"named": false
},