diff options
Diffstat (limited to 'src/node-types.json')
-rw-r--r-- | src/node-types.json | 134 |
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 }, |