Skip to content

Commit 708f10f

Browse files
maxbrunsfeldamaanq
authored andcommitted
Add reserved words to JSON schema
1 parent 9fcc822 commit 708f10f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/assets/schemas/grammar.schema.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@
5757
}
5858
},
5959

60+
"reserved": {
61+
"type": "object",
62+
"patternProperties": {
63+
"^[a-zA-Z_]\\w*$": {
64+
"type": "array",
65+
"uniqueItems": true,
66+
"items": {
67+
"$ref": "#/definitions/rule"
68+
}
69+
}
70+
},
71+
"additionalProperties": false
72+
},
73+
6074
"externals": {
6175
"type": "array",
6276
"uniqueItems": true,

0 commit comments

Comments
 (0)