@codingame/monaco-vscode-json-default-extension 1.81.8-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/JSON.tmLanguage.json +213 -0
- package/JSONC.tmLanguage.json +213 -0
- package/JSONL.tmLanguage.json +213 -0
- package/index.js +9 -0
- package/language-configuration.json +22 -0
- package/package.json +22 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{
|
|
2
|
+
"information_for_contributors": [
|
|
3
|
+
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
|
|
4
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
5
|
+
"Once accepted there, we are happy to receive an update request."
|
|
6
|
+
],
|
|
7
|
+
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
|
|
8
|
+
"name": "JSON (Javascript Next)",
|
|
9
|
+
"scopeName": "source.json",
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#value"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"array": {
|
|
17
|
+
"begin": "\\[",
|
|
18
|
+
"beginCaptures": {
|
|
19
|
+
"0": {
|
|
20
|
+
"name": "punctuation.definition.array.begin.json"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"end": "\\]",
|
|
24
|
+
"endCaptures": {
|
|
25
|
+
"0": {
|
|
26
|
+
"name": "punctuation.definition.array.end.json"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"name": "meta.structure.array.json",
|
|
30
|
+
"patterns": [
|
|
31
|
+
{
|
|
32
|
+
"include": "#value"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"match": ",",
|
|
36
|
+
"name": "punctuation.separator.array.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"match": "[^\\s\\]]",
|
|
40
|
+
"name": "invalid.illegal.expected-array-separator.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"comments": {
|
|
45
|
+
"patterns": [
|
|
46
|
+
{
|
|
47
|
+
"begin": "/\\*\\*(?!/)",
|
|
48
|
+
"captures": {
|
|
49
|
+
"0": {
|
|
50
|
+
"name": "punctuation.definition.comment.json"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"end": "\\*/",
|
|
54
|
+
"name": "comment.block.documentation.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"begin": "/\\*",
|
|
58
|
+
"captures": {
|
|
59
|
+
"0": {
|
|
60
|
+
"name": "punctuation.definition.comment.json"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"end": "\\*/",
|
|
64
|
+
"name": "comment.block.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"captures": {
|
|
68
|
+
"1": {
|
|
69
|
+
"name": "punctuation.definition.comment.json"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"match": "(//).*$\\n?",
|
|
73
|
+
"name": "comment.line.double-slash.js"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"constant": {
|
|
78
|
+
"match": "\\b(?:true|false|null)\\b",
|
|
79
|
+
"name": "constant.language.json"
|
|
80
|
+
},
|
|
81
|
+
"number": {
|
|
82
|
+
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
|
|
83
|
+
"name": "constant.numeric.json"
|
|
84
|
+
},
|
|
85
|
+
"object": {
|
|
86
|
+
"begin": "\\{",
|
|
87
|
+
"beginCaptures": {
|
|
88
|
+
"0": {
|
|
89
|
+
"name": "punctuation.definition.dictionary.begin.json"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"end": "\\}",
|
|
93
|
+
"endCaptures": {
|
|
94
|
+
"0": {
|
|
95
|
+
"name": "punctuation.definition.dictionary.end.json"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"name": "meta.structure.dictionary.json",
|
|
99
|
+
"patterns": [
|
|
100
|
+
{
|
|
101
|
+
"comment": "the JSON object key",
|
|
102
|
+
"include": "#objectkey"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"include": "#comments"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"begin": ":",
|
|
109
|
+
"beginCaptures": {
|
|
110
|
+
"0": {
|
|
111
|
+
"name": "punctuation.separator.dictionary.key-value.json"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"end": "(,)|(?=\\})",
|
|
115
|
+
"endCaptures": {
|
|
116
|
+
"1": {
|
|
117
|
+
"name": "punctuation.separator.dictionary.pair.json"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"name": "meta.structure.dictionary.value.json",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"comment": "the JSON object value",
|
|
124
|
+
"include": "#value"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"match": "[^\\s,]",
|
|
128
|
+
"name": "invalid.illegal.expected-dictionary-separator.json"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"match": "[^\\s\\}]",
|
|
134
|
+
"name": "invalid.illegal.expected-dictionary-separator.json"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"string": {
|
|
139
|
+
"begin": "\"",
|
|
140
|
+
"beginCaptures": {
|
|
141
|
+
"0": {
|
|
142
|
+
"name": "punctuation.definition.string.begin.json"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"end": "\"",
|
|
146
|
+
"endCaptures": {
|
|
147
|
+
"0": {
|
|
148
|
+
"name": "punctuation.definition.string.end.json"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"name": "string.quoted.double.json",
|
|
152
|
+
"patterns": [
|
|
153
|
+
{
|
|
154
|
+
"include": "#stringcontent"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"objectkey": {
|
|
159
|
+
"begin": "\"",
|
|
160
|
+
"beginCaptures": {
|
|
161
|
+
"0": {
|
|
162
|
+
"name": "punctuation.support.type.property-name.begin.json"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"end": "\"",
|
|
166
|
+
"endCaptures": {
|
|
167
|
+
"0": {
|
|
168
|
+
"name": "punctuation.support.type.property-name.end.json"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"name": "string.json support.type.property-name.json",
|
|
172
|
+
"patterns": [
|
|
173
|
+
{
|
|
174
|
+
"include": "#stringcontent"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"stringcontent": {
|
|
179
|
+
"patterns": [
|
|
180
|
+
{
|
|
181
|
+
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
|
|
182
|
+
"name": "constant.character.escape.json"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"match": "\\\\.",
|
|
186
|
+
"name": "invalid.illegal.unrecognized-string-escape.json"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"value": {
|
|
191
|
+
"patterns": [
|
|
192
|
+
{
|
|
193
|
+
"include": "#constant"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"include": "#number"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"include": "#string"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"include": "#array"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"include": "#object"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"include": "#comments"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{
|
|
2
|
+
"information_for_contributors": [
|
|
3
|
+
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
|
|
4
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
5
|
+
"Once accepted there, we are happy to receive an update request."
|
|
6
|
+
],
|
|
7
|
+
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
|
|
8
|
+
"name": "JSON with Comments",
|
|
9
|
+
"scopeName": "source.json.comments",
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#value"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"array": {
|
|
17
|
+
"begin": "\\[",
|
|
18
|
+
"beginCaptures": {
|
|
19
|
+
"0": {
|
|
20
|
+
"name": "punctuation.definition.array.begin.json.comments"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"end": "\\]",
|
|
24
|
+
"endCaptures": {
|
|
25
|
+
"0": {
|
|
26
|
+
"name": "punctuation.definition.array.end.json.comments"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"name": "meta.structure.array.json.comments",
|
|
30
|
+
"patterns": [
|
|
31
|
+
{
|
|
32
|
+
"include": "#value"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"match": ",",
|
|
36
|
+
"name": "punctuation.separator.array.json.comments"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"match": "[^\\s\\]]",
|
|
40
|
+
"name": "invalid.illegal.expected-array-separator.json.comments"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"comments": {
|
|
45
|
+
"patterns": [
|
|
46
|
+
{
|
|
47
|
+
"begin": "/\\*\\*(?!/)",
|
|
48
|
+
"captures": {
|
|
49
|
+
"0": {
|
|
50
|
+
"name": "punctuation.definition.comment.json.comments"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"end": "\\*/",
|
|
54
|
+
"name": "comment.block.documentation.json.comments"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"begin": "/\\*",
|
|
58
|
+
"captures": {
|
|
59
|
+
"0": {
|
|
60
|
+
"name": "punctuation.definition.comment.json.comments"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"end": "\\*/",
|
|
64
|
+
"name": "comment.block.json.comments"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"captures": {
|
|
68
|
+
"1": {
|
|
69
|
+
"name": "punctuation.definition.comment.json.comments"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"match": "(//).*$\\n?",
|
|
73
|
+
"name": "comment.line.double-slash.js"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"constant": {
|
|
78
|
+
"match": "\\b(?:true|false|null)\\b",
|
|
79
|
+
"name": "constant.language.json.comments"
|
|
80
|
+
},
|
|
81
|
+
"number": {
|
|
82
|
+
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
|
|
83
|
+
"name": "constant.numeric.json.comments"
|
|
84
|
+
},
|
|
85
|
+
"object": {
|
|
86
|
+
"begin": "\\{",
|
|
87
|
+
"beginCaptures": {
|
|
88
|
+
"0": {
|
|
89
|
+
"name": "punctuation.definition.dictionary.begin.json.comments"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"end": "\\}",
|
|
93
|
+
"endCaptures": {
|
|
94
|
+
"0": {
|
|
95
|
+
"name": "punctuation.definition.dictionary.end.json.comments"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"name": "meta.structure.dictionary.json.comments",
|
|
99
|
+
"patterns": [
|
|
100
|
+
{
|
|
101
|
+
"comment": "the JSON object key",
|
|
102
|
+
"include": "#objectkey"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"include": "#comments"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"begin": ":",
|
|
109
|
+
"beginCaptures": {
|
|
110
|
+
"0": {
|
|
111
|
+
"name": "punctuation.separator.dictionary.key-value.json.comments"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"end": "(,)|(?=\\})",
|
|
115
|
+
"endCaptures": {
|
|
116
|
+
"1": {
|
|
117
|
+
"name": "punctuation.separator.dictionary.pair.json.comments"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"name": "meta.structure.dictionary.value.json.comments",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"comment": "the JSON object value",
|
|
124
|
+
"include": "#value"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"match": "[^\\s,]",
|
|
128
|
+
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"match": "[^\\s\\}]",
|
|
134
|
+
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"string": {
|
|
139
|
+
"begin": "\"",
|
|
140
|
+
"beginCaptures": {
|
|
141
|
+
"0": {
|
|
142
|
+
"name": "punctuation.definition.string.begin.json.comments"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"end": "\"",
|
|
146
|
+
"endCaptures": {
|
|
147
|
+
"0": {
|
|
148
|
+
"name": "punctuation.definition.string.end.json.comments"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"name": "string.quoted.double.json.comments",
|
|
152
|
+
"patterns": [
|
|
153
|
+
{
|
|
154
|
+
"include": "#stringcontent"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"objectkey": {
|
|
159
|
+
"begin": "\"",
|
|
160
|
+
"beginCaptures": {
|
|
161
|
+
"0": {
|
|
162
|
+
"name": "punctuation.support.type.property-name.begin.json.comments"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"end": "\"",
|
|
166
|
+
"endCaptures": {
|
|
167
|
+
"0": {
|
|
168
|
+
"name": "punctuation.support.type.property-name.end.json.comments"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"name": "string.json.comments support.type.property-name.json.comments",
|
|
172
|
+
"patterns": [
|
|
173
|
+
{
|
|
174
|
+
"include": "#stringcontent"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"stringcontent": {
|
|
179
|
+
"patterns": [
|
|
180
|
+
{
|
|
181
|
+
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
|
|
182
|
+
"name": "constant.character.escape.json.comments"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"match": "\\\\.",
|
|
186
|
+
"name": "invalid.illegal.unrecognized-string-escape.json.comments"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"value": {
|
|
191
|
+
"patterns": [
|
|
192
|
+
{
|
|
193
|
+
"include": "#constant"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"include": "#number"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"include": "#string"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"include": "#array"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"include": "#object"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"include": "#comments"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{
|
|
2
|
+
"information_for_contributors": [
|
|
3
|
+
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
|
|
4
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
5
|
+
"Once accepted there, we are happy to receive an update request."
|
|
6
|
+
],
|
|
7
|
+
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
|
|
8
|
+
"name": "JSON Lines",
|
|
9
|
+
"scopeName": "source.json.lines",
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#value"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"array": {
|
|
17
|
+
"begin": "\\[",
|
|
18
|
+
"beginCaptures": {
|
|
19
|
+
"0": {
|
|
20
|
+
"name": "punctuation.definition.array.begin.json.lines"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"end": "\\]",
|
|
24
|
+
"endCaptures": {
|
|
25
|
+
"0": {
|
|
26
|
+
"name": "punctuation.definition.array.end.json.lines"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"name": "meta.structure.array.json.lines",
|
|
30
|
+
"patterns": [
|
|
31
|
+
{
|
|
32
|
+
"include": "#value"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"match": ",",
|
|
36
|
+
"name": "punctuation.separator.array.json.lines"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"match": "[^\\s\\]]",
|
|
40
|
+
"name": "invalid.illegal.expected-array-separator.json.lines"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"comments": {
|
|
45
|
+
"patterns": [
|
|
46
|
+
{
|
|
47
|
+
"begin": "/\\*\\*(?!/)",
|
|
48
|
+
"captures": {
|
|
49
|
+
"0": {
|
|
50
|
+
"name": "punctuation.definition.comment.json.lines"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"end": "\\*/",
|
|
54
|
+
"name": "comment.block.documentation.json.lines"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"begin": "/\\*",
|
|
58
|
+
"captures": {
|
|
59
|
+
"0": {
|
|
60
|
+
"name": "punctuation.definition.comment.json.lines"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"end": "\\*/",
|
|
64
|
+
"name": "comment.block.json.lines"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"captures": {
|
|
68
|
+
"1": {
|
|
69
|
+
"name": "punctuation.definition.comment.json.lines"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"match": "(//).*$\\n?",
|
|
73
|
+
"name": "comment.line.double-slash.js"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"constant": {
|
|
78
|
+
"match": "\\b(?:true|false|null)\\b",
|
|
79
|
+
"name": "constant.language.json.lines"
|
|
80
|
+
},
|
|
81
|
+
"number": {
|
|
82
|
+
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
|
|
83
|
+
"name": "constant.numeric.json.lines"
|
|
84
|
+
},
|
|
85
|
+
"object": {
|
|
86
|
+
"begin": "\\{",
|
|
87
|
+
"beginCaptures": {
|
|
88
|
+
"0": {
|
|
89
|
+
"name": "punctuation.definition.dictionary.begin.json.lines"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"end": "\\}",
|
|
93
|
+
"endCaptures": {
|
|
94
|
+
"0": {
|
|
95
|
+
"name": "punctuation.definition.dictionary.end.json.lines"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"name": "meta.structure.dictionary.json.lines",
|
|
99
|
+
"patterns": [
|
|
100
|
+
{
|
|
101
|
+
"comment": "the JSON object key",
|
|
102
|
+
"include": "#objectkey"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"include": "#comments"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"begin": ":",
|
|
109
|
+
"beginCaptures": {
|
|
110
|
+
"0": {
|
|
111
|
+
"name": "punctuation.separator.dictionary.key-value.json.lines"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"end": "(,)|(?=\\})",
|
|
115
|
+
"endCaptures": {
|
|
116
|
+
"1": {
|
|
117
|
+
"name": "punctuation.separator.dictionary.pair.json.lines"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"name": "meta.structure.dictionary.value.json.lines",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"comment": "the JSON object value",
|
|
124
|
+
"include": "#value"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"match": "[^\\s,]",
|
|
128
|
+
"name": "invalid.illegal.expected-dictionary-separator.json.lines"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"match": "[^\\s\\}]",
|
|
134
|
+
"name": "invalid.illegal.expected-dictionary-separator.json.lines"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"string": {
|
|
139
|
+
"begin": "\"",
|
|
140
|
+
"beginCaptures": {
|
|
141
|
+
"0": {
|
|
142
|
+
"name": "punctuation.definition.string.begin.json.lines"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"end": "\"",
|
|
146
|
+
"endCaptures": {
|
|
147
|
+
"0": {
|
|
148
|
+
"name": "punctuation.definition.string.end.json.lines"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"name": "string.quoted.double.json.lines",
|
|
152
|
+
"patterns": [
|
|
153
|
+
{
|
|
154
|
+
"include": "#stringcontent"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"objectkey": {
|
|
159
|
+
"begin": "\"",
|
|
160
|
+
"beginCaptures": {
|
|
161
|
+
"0": {
|
|
162
|
+
"name": "punctuation.support.type.property-name.begin.json.lines"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"end": "\"",
|
|
166
|
+
"endCaptures": {
|
|
167
|
+
"0": {
|
|
168
|
+
"name": "punctuation.support.type.property-name.end.json.lines"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"name": "string.json.lines support.type.property-name.json.lines",
|
|
172
|
+
"patterns": [
|
|
173
|
+
{
|
|
174
|
+
"include": "#stringcontent"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"stringcontent": {
|
|
179
|
+
"patterns": [
|
|
180
|
+
{
|
|
181
|
+
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
|
|
182
|
+
"name": "constant.character.escape.json.lines"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"match": "\\\\.",
|
|
186
|
+
"name": "invalid.illegal.unrecognized-string-escape.json.lines"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"value": {
|
|
191
|
+
"patterns": [
|
|
192
|
+
{
|
|
193
|
+
"include": "#constant"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"include": "#number"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"include": "#string"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"include": "#array"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"include": "#object"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"include": "#comments"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { registerExtension } from 'vscode/extensions';
|
|
2
|
+
|
|
3
|
+
var manifest = {name:"json",displayName:"JSON Language Basics",description:"Provides syntax highlighting & bracket matching in JSON files.",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"0.10.x"},scripts:{"update-grammar":"node ./build/update-grammars.js"},contributes:{languages:[{id:"json",aliases:["JSON","json"],extensions:[".json",".bowerrc",".jscsrc",".webmanifest",".js.map",".css.map",".ts.map",".har",".jslintrc",".jsonld",".geojson",".ipynb",".vuerc"],filenames:["composer.lock",".watchmanconfig"],mimetypes:["application/json","application/manifest+json"],configuration:"./language-configuration.json"},{id:"jsonc",aliases:["JSON with Comments"],extensions:[".jsonc",".eslintrc",".eslintrc.json",".jsfmtrc",".jshintrc",".swcrc",".hintrc",".babelrc"],filenames:["babel.config.json",".babelrc.json",".ember-cli","typedoc.json"],configuration:"./language-configuration.json"},{id:"jsonl",aliases:["JSON Lines"],extensions:[".jsonl"],filenames:[],configuration:"./language-configuration.json"}],grammars:[{language:"json",scopeName:"source.json",path:"./syntaxes/JSON.tmLanguage.json"},{language:"jsonc",scopeName:"source.json.comments",path:"./syntaxes/JSONC.tmLanguage.json"},{language:"jsonl",scopeName:"source.json.lines",path:"./syntaxes/JSONL.tmLanguage.json"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
|
|
4
|
+
|
|
5
|
+
const { registerFileUrl } = registerExtension(manifest);
|
|
6
|
+
registerFileUrl('./syntaxes/JSON.tmLanguage.json', new URL('./JSON.tmLanguage.json', import.meta.url).toString(), 'application/json');
|
|
7
|
+
registerFileUrl('./syntaxes/JSONC.tmLanguage.json', new URL('./JSONC.tmLanguage.json', import.meta.url).toString(), 'application/json');
|
|
8
|
+
registerFileUrl('./syntaxes/JSONL.tmLanguage.json', new URL('./JSONL.tmLanguage.json', import.meta.url).toString(), 'application/json');
|
|
9
|
+
registerFileUrl('./language-configuration.json', new URL('./language-configuration.json', import.meta.url).toString(), 'application/json');
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": "//",
|
|
4
|
+
"blockComment": [ "/*", "*/" ]
|
|
5
|
+
},
|
|
6
|
+
"brackets": [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"]
|
|
9
|
+
],
|
|
10
|
+
"autoClosingPairs": [
|
|
11
|
+
{ "open": "{", "close": "}", "notIn": ["string"] },
|
|
12
|
+
{ "open": "[", "close": "]", "notIn": ["string"] },
|
|
13
|
+
{ "open": "(", "close": ")", "notIn": ["string"] },
|
|
14
|
+
{ "open": "'", "close": "'", "notIn": ["string"] },
|
|
15
|
+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
16
|
+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }
|
|
17
|
+
],
|
|
18
|
+
"indentationRules": {
|
|
19
|
+
"increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)",
|
|
20
|
+
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingame/monaco-vscode-json-default-extension",
|
|
3
|
+
"version": "1.81.8-next.1",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "CodinGame",
|
|
7
|
+
"url": "http://www.codingame.com"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/CodinGame/monaco-vscode-api"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"private": false,
|
|
16
|
+
"description": "Default VSCode extension designed to be used with @codingame/monaco-vscode-api",
|
|
17
|
+
"main": "index.js",
|
|
18
|
+
"module": "index.js",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.81.8-next.1"
|
|
21
|
+
}
|
|
22
|
+
}
|