feat(cli): documented optional supertypes Array<string> in grammar-schema.json
{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "tree-sitter grammar specification",
"type": "object",
"required": ["name", "rules"],
"properties": {
"name": {
+ "description": "the name of the grammar",
"type": "string",
"pattern": "^[a-zA-Z_]\\w*"
},
"word": {
"type": "string",
"pattern": "^[a-zA-Z_]\\w*"
+ },
+
+ "supertypes": {
+ "description": "each supertype instructs the parser to replace a set of subtypes in the `types` list with a single supertype.",
+ "type": "array",
+ "items": {
+ "description": "the name of a rule in `rules` or `extras`",
+ "type": "string"
+ }
}
},
