|
31 | 31 | "uuid": { "type": "string" }, |
32 | 32 | "firstLineMatch": { "type": "string" } |
33 | 33 | }, |
34 | | - "required": [ "scopeName" ] |
| 34 | + "required": ["scopeName"] |
35 | 35 | } |
36 | 36 | ] |
37 | 37 | }, |
38 | 38 | "grammar": { |
39 | 39 | "type": "object", |
40 | | - "properties": { |
41 | | - "patterns": { |
42 | | - "type": "array", |
43 | | - "items": { "$ref": "#/definitions/pattern" }, |
44 | | - "default": [ ] |
45 | | - }, |
46 | | - "repository": { |
47 | | - "description": "a dictionary (i.e. key/value pairs) of rules which can be included from other places in the grammar. The key is the name of the rule and the value is the actual rule. Further explanation (and example) follow with the description of the include rule key.", |
48 | | - "type": "object", |
49 | | - "additionalProperties": { |
50 | | - "$ref": "#/definitions/pattern" |
51 | | - } |
52 | | - } |
| 40 | + "properties": { |
| 41 | + "patterns": { |
| 42 | + "type": "array", |
| 43 | + "items": { "$ref": "#/definitions/pattern" }, |
| 44 | + "default": [] |
53 | 45 | }, |
54 | | - "required": [ |
55 | | - "patterns" |
56 | | - ] |
| 46 | + "repository": { |
| 47 | + "description": "a dictionary (i.e. key/value pairs) of rules which can be included from other places in the grammar. The key is the name of the rule and the value is the actual rule. Further explanation (and example) follow with the description of the include rule key.", |
| 48 | + "type": "object", |
| 49 | + "additionalProperties": { |
| 50 | + "$ref": "#/definitions/pattern" |
| 51 | + } |
| 52 | + } |
| 53 | + }, |
| 54 | + "required": ["patterns"] |
57 | 55 | }, |
58 | 56 | "captures": { |
59 | 57 | "type": "object", |
|
65 | 63 | "patterns": { |
66 | 64 | "type": "array", |
67 | 65 | "items": { "$ref": "#/definitions/pattern" }, |
68 | | - "default": [ ] |
| 66 | + "default": [] |
69 | 67 | } |
70 | 68 | }, |
71 | 69 | "additionalProperties": false |
|
77 | 75 | "type": "object", |
78 | 76 | "properties": { |
79 | 77 | "comment": { "type": "string" }, |
80 | | - "disabled": { "type": "integer", "minimum": 0, "maximum": 1, "description": "set this property to 1 to disable the current pattern" }, |
| 78 | + "disabled": { |
| 79 | + "type": "integer", |
| 80 | + "minimum": 0, |
| 81 | + "maximum": 1, |
| 82 | + "description": "set this property to 1 to disable the current pattern" |
| 83 | + }, |
81 | 84 | "include": { |
82 | 85 | "description": "this allows you to reference a different language, recursively reference the grammar itself or a rule declared in this file’s repository.", |
83 | 86 | "type": "string" |
|
126 | 129 | "description": "applies to the region between the begin and end matches", |
127 | 130 | "type": "array", |
128 | 131 | "items": { "$ref": "#/definitions/pattern" }, |
129 | | - "default": [ ] |
| 132 | + "default": [] |
130 | 133 | }, |
131 | 134 | "applyEndPatternLast": { |
132 | 135 | "type": "integer", |
|
136 | 139 | }, |
137 | 140 | "dependencies": { |
138 | 141 | "begin": { |
139 | | - "anyOf": [{ "required": [ "end" ] }, { "required": [ "while" ] }] |
| 142 | + "anyOf": [{ "required": ["end"] }, { "required": ["while"] }] |
140 | 143 | }, |
141 | | - "end": [ "begin" ], |
142 | | - "while": [ "begin" ], |
| 144 | + "end": ["begin"], |
| 145 | + "while": ["begin"], |
143 | 146 | "contentName": { |
144 | 147 | "anyOf": [ |
145 | | - { "required": [ "begin", "end" ] }, |
146 | | - { "required": [ "begin", "while" ] } |
| 148 | + { "required": ["begin", "end"] }, |
| 149 | + { "required": ["begin", "while"] } |
147 | 150 | ] |
148 | 151 | }, |
149 | 152 | "beginCaptures": { |
150 | 153 | "anyOf": [ |
151 | | - { "required": [ "begin", "end" ] }, |
152 | | - { "required": [ "begin", "while" ] } |
| 154 | + { "required": ["begin", "end"] }, |
| 155 | + { "required": ["begin", "while"] } |
153 | 156 | ] |
154 | 157 | }, |
155 | | - "whileCaptures": [ "begin", "while" ], |
156 | | - "endCaptures": [ "begin", "end" ], |
157 | | - "applyEndPatternLast": [ "end" ] |
| 158 | + "whileCaptures": ["begin", "while"], |
| 159 | + "endCaptures": ["begin", "end"], |
| 160 | + "applyEndPatternLast": ["end"] |
158 | 161 | } |
159 | 162 | }, |
160 | 163 | "name": { |
|
0 commit comments