Constant tree_sitter_html::NODE_TYPES

source ยท
pub const NODE_TYPES: &str = "[\n  {\n    \"type\": \"attribute\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"attribute_name\",\n          \"named\": true\n        },\n        {\n          \"type\": \"attribute_value\",\n          \"named\": true\n        },\n        {\n          \"type\": \"quoted_attribute_value\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"doctype\",\n    \"named\": true,\n    \"fields\": {}\n  },\n  {\n    \"type\": \"document\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": false,\n      \"types\": [\n        {\n          \"type\": \"doctype\",\n          \"named\": true\n        },\n        {\n          \"type\": \"element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"entity\",\n          \"named\": true\n        },\n        {\n          \"type\": \"erroneous_end_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"script_element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"style_element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"text\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"element\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"doctype\",\n          \"named\": true\n        },\n        {\n          \"type\": \"element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"end_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"entity\",\n          \"named\": true\n        },\n        {\n          \"type\": \"erroneous_end_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"script_element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"self_closing_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"start_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"style_element\",\n          \"named\": true\n        },\n        {\n          \"type\": \"text\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"end_tag\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": false,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"tag_name\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"erroneous_end_tag\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": false,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"erroneous_end_tag_name\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"quoted_attribute_value\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": false,\n      \"required\": false,\n      \"types\": [\n        {\n          \"type\": \"attribute_value\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"script_element\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"end_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"raw_text\",\n          \"named\": true\n        },\n        {\n          \"type\": \"start_tag\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"self_closing_tag\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"attribute\",\n          \"named\": true\n        },\n        {\n          \"type\": \"tag_name\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"start_tag\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"attribute\",\n          \"named\": true\n        },\n        {\n          \"type\": \"tag_name\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"style_element\",\n    \"named\": true,\n    \"fields\": {},\n    \"children\": {\n      \"multiple\": true,\n      \"required\": true,\n      \"types\": [\n        {\n          \"type\": \"end_tag\",\n          \"named\": true\n        },\n        {\n          \"type\": \"raw_text\",\n          \"named\": true\n        },\n        {\n          \"type\": \"start_tag\",\n          \"named\": true\n        }\n      ]\n    }\n  },\n  {\n    \"type\": \"\\\"\",\n    \"named\": false\n  },\n  {\n    \"type\": \"\'\",\n    \"named\": false\n  },\n  {\n    \"type\": \"/>\",\n    \"named\": false\n  },\n  {\n    \"type\": \"<\",\n    \"named\": false\n  },\n  {\n    \"type\": \"<!\",\n    \"named\": false\n  },\n  {\n    \"type\": \"</\",\n    \"named\": false\n  },\n  {\n    \"type\": \"=\",\n    \"named\": false\n  },\n  {\n    \"type\": \">\",\n    \"named\": false\n  },\n  {\n    \"type\": \"attribute_name\",\n    \"named\": true\n  },\n  {\n    \"type\": \"attribute_value\",\n    \"named\": true\n  },\n  {\n    \"type\": \"comment\",\n    \"named\": true\n  },\n  {\n    \"type\": \"doctype\",\n    \"named\": false\n  },\n  {\n    \"type\": \"entity\",\n    \"named\": true\n  },\n  {\n    \"type\": \"erroneous_end_tag_name\",\n    \"named\": true\n  },\n  {\n    \"type\": \"raw_text\",\n    \"named\": true\n  },\n  {\n    \"type\": \"tag_name\",\n    \"named\": true\n  },\n  {\n    \"type\": \"text\",\n    \"named\": true\n  }\n]";
Expand description

The content of the node-types.json file for this grammar.