@codingame/monaco-vscode-latex-default-extension 1.82.6 → 1.83.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.
@@ -4,30 +4,74 @@
4
4
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
5
  "Once accepted there, we are happy to receive an update request."
6
6
  ],
7
- "version": "https://github.com/jlelong/vscode-latex-basics/commit/7adad0868ecafbb1df978f1e052d6c3c85c38732",
7
+ "version": "https://github.com/jlelong/vscode-latex-basics/commit/36411b38cf4ed18e02050249e2162b1316488686",
8
8
  "name": "BibTeX",
9
9
  "scopeName": "text.bibtex",
10
- "comment": "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\t\n\tTODO: Does not support @preamble\n\t",
10
+ "comment": "Grammar based on description from https://github.com/aclements/biblib\n",
11
11
  "patterns": [
12
12
  {
13
- "begin": "@Comment",
14
- "beginCaptures": {
13
+ "match": "@(?i:comment)(?=[\\s{(])",
14
+ "captures": {
15
15
  "0": {
16
16
  "name": "punctuation.definition.comment.bibtex"
17
17
  }
18
18
  },
19
- "end": "$\\n?",
20
- "name": "comment.line.at-sign.bibtex"
19
+ "name": "comment.block.at-sign.bibtex"
21
20
  },
22
21
  {
22
+ "begin": "((@)(?i:preamble))\\s*(\\{)\\s*",
23
+ "beginCaptures": {
24
+ "1": {
25
+ "name": "keyword.other.preamble.bibtex"
26
+ },
27
+ "2": {
28
+ "name": "punctuation.definition.keyword.bibtex"
29
+ },
30
+ "3": {
31
+ "name": "punctuation.section.preamble.begin.bibtex"
32
+ }
33
+ },
34
+ "end": "\\}",
35
+ "endCaptures": {
36
+ "0": {
37
+ "name": "punctuation.section.preamble.end.bibtex"
38
+ }
39
+ },
40
+ "name": "meta.preamble.braces.bibtex",
23
41
  "patterns": [
24
42
  {
25
- "include": "#percentage_comment"
43
+ "include": "#field_value"
26
44
  }
27
45
  ]
28
46
  },
29
47
  {
30
- "begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)",
48
+ "begin": "((@)(?i:preamble))\\s*(\\()\\s*",
49
+ "beginCaptures": {
50
+ "1": {
51
+ "name": "keyword.other.preamble.bibtex"
52
+ },
53
+ "2": {
54
+ "name": "punctuation.definition.keyword.bibtex"
55
+ },
56
+ "3": {
57
+ "name": "punctuation.section.preamble.begin.bibtex"
58
+ }
59
+ },
60
+ "end": "\\)",
61
+ "endCaptures": {
62
+ "0": {
63
+ "name": "punctuation.section.preamble.end.bibtex"
64
+ }
65
+ },
66
+ "name": "meta.preamble.parenthesis.bibtex",
67
+ "patterns": [
68
+ {
69
+ "include": "#field_value"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
31
75
  "beginCaptures": {
32
76
  "1": {
33
77
  "name": "keyword.other.string-constant.bibtex"
@@ -51,12 +95,12 @@
51
95
  "name": "meta.string-constant.braces.bibtex",
52
96
  "patterns": [
53
97
  {
54
- "include": "#string_content"
98
+ "include": "#field_value"
55
99
  }
56
100
  ]
57
101
  },
58
102
  {
59
- "begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)",
103
+ "begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
60
104
  "beginCaptures": {
61
105
  "1": {
62
106
  "name": "keyword.other.string-constant.bibtex"
@@ -80,12 +124,12 @@
80
124
  "name": "meta.string-constant.parenthesis.bibtex",
81
125
  "patterns": [
82
126
  {
83
- "include": "#string_content"
127
+ "include": "#field_value"
84
128
  }
85
129
  ]
86
130
  },
87
131
  {
88
- "begin": "((@)[a-zA-Z]+)\\s*(\\{)\\s*([^\\s,]*)",
132
+ "begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\{)\\s*([^\\s,}]*)",
89
133
  "beginCaptures": {
90
134
  "1": {
91
135
  "name": "keyword.other.entry-type.bibtex"
@@ -109,13 +153,7 @@
109
153
  "name": "meta.entry.braces.bibtex",
110
154
  "patterns": [
111
155
  {
112
- "include": "#percentage_comment"
113
- },
114
- {
115
- "include": "#url_field"
116
- },
117
- {
118
- "begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
156
+ "begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
119
157
  "beginCaptures": {
120
158
  "1": {
121
159
  "name": "support.function.key.bibtex"
@@ -128,23 +166,14 @@
128
166
  "name": "meta.key-assignment.bibtex",
129
167
  "patterns": [
130
168
  {
131
- "include": "#percentage_comment"
132
- },
133
- {
134
- "include": "#integer"
135
- },
136
- {
137
- "include": "#string_content"
138
- },
139
- {
140
- "include": "#string_var"
169
+ "include": "#field_value"
141
170
  }
142
171
  ]
143
172
  }
144
173
  ]
145
174
  },
146
175
  {
147
- "begin": "((@)[a-zA-Z]+)\\s*(\\()\\s*([^\\s,]*)",
176
+ "begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\()\\s*([^\\s,]*)",
148
177
  "beginCaptures": {
149
178
  "1": {
150
179
  "name": "keyword.other.entry-type.bibtex"
@@ -168,13 +197,7 @@
168
197
  "name": "meta.entry.parenthesis.bibtex",
169
198
  "patterns": [
170
199
  {
171
- "include": "#percentage_comment"
172
- },
173
- {
174
- "include": "#url_field"
175
- },
176
- {
177
- "begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
200
+ "begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
178
201
  "beginCaptures": {
179
202
  "1": {
180
203
  "name": "support.function.key.bibtex"
@@ -187,16 +210,7 @@
187
210
  "name": "meta.key-assignment.bibtex",
188
211
  "patterns": [
189
212
  {
190
- "include": "#percentage_comment"
191
- },
192
- {
193
- "include": "#integer"
194
- },
195
- {
196
- "include": "#string_content"
197
- },
198
- {
199
- "include": "#string_var"
213
+ "include": "#field_value"
200
214
  }
201
215
  ]
202
216
  }
@@ -209,6 +223,23 @@
209
223
  }
210
224
  ],
211
225
  "repository": {
226
+ "field_value": {
227
+ "patterns": [
228
+ {
229
+ "include": "#string_content"
230
+ },
231
+ {
232
+ "include": "#integer"
233
+ },
234
+ {
235
+ "include": "#string_var"
236
+ },
237
+ {
238
+ "name": "keyword.operator.bibtex",
239
+ "match": "#"
240
+ }
241
+ ]
242
+ },
212
243
  "integer": {
213
244
  "match": "\\s*(\\d+)\\s*",
214
245
  "captures": {
@@ -218,13 +249,13 @@
218
249
  }
219
250
  },
220
251
  "nested_braces": {
221
- "begin": "(?<!\\\\)\\{",
252
+ "begin": "\\{",
222
253
  "beginCaptures": {
223
254
  "0": {
224
255
  "name": "punctuation.definition.group.begin.bibtex"
225
256
  }
226
257
  },
227
- "end": "(?<!\\\\)\\}",
258
+ "end": "\\}",
228
259
  "endCaptures": {
229
260
  "0": {
230
261
  "name": "punctuation.definition.group.end.bibtex"
@@ -237,16 +268,10 @@
237
268
  ]
238
269
  },
239
270
  "string_var": {
240
- "match": "(#)?\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(#)?",
271
+ "match": "[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*",
241
272
  "captures": {
242
- "1": {
243
- "name": "keyword.operator.bibtex"
244
- },
245
- "2": {
273
+ "0": {
246
274
  "name": "support.variable.bibtex"
247
- },
248
- "3": {
249
- "name": "keyword.operator.bibtex"
250
275
  }
251
276
  }
252
277
  },
@@ -259,23 +284,13 @@
259
284
  "name": "punctuation.definition.string.begin.bibtex"
260
285
  }
261
286
  },
262
- "end": "(\\})(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
287
+ "end": "\\}",
263
288
  "endCaptures": {
264
- "1": {
289
+ "0": {
265
290
  "name": "punctuation.definition.string.end.bibtex"
266
291
  }
267
292
  },
268
293
  "patterns": [
269
- {
270
- "include": "#url_cmd"
271
- },
272
- {
273
- "include": "#percentage_comment"
274
- },
275
- {
276
- "match": "@",
277
- "name": "invalid.illegal.at-sign.bibtex"
278
- },
279
294
  {
280
295
  "include": "#nested_braces"
281
296
  }
@@ -288,7 +303,7 @@
288
303
  "name": "punctuation.definition.string.begin.bibtex"
289
304
  }
290
305
  },
291
- "end": "\"(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
306
+ "end": "\"",
292
307
  "endCaptures": {
293
308
  "0": {
294
309
  "name": "punctuation.definition.string.end.bibtex"
@@ -296,106 +311,11 @@
296
311
  },
297
312
  "patterns": [
298
313
  {
299
- "include": "#url_cmd"
300
- },
301
- {
302
- "include": "#percentage_comment"
303
- },
304
- {
305
- "match": "@",
306
- "name": "invalid.illegal.at-sign.bibtex"
307
- }
308
- ]
309
- }
310
- ]
311
- },
312
- "string_url": {
313
- "patterns": [
314
- {
315
- "begin": "\\{|\"",
316
- "beginCaptures": {
317
- "0": {
318
- "name": "punctuation.definition.string.begin.bibtex"
319
- }
320
- },
321
- "end": "(\\}|\")(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
322
- "endCaptures": {
323
- "1": {
324
- "name": "punctuation.definition.string.end.bibtex"
325
- }
326
- },
327
- "contentName": "meta.url.bibtex",
328
- "patterns": [
329
- {
330
- "include": "#url_cmd"
331
- }
332
- ]
333
- }
334
- ]
335
- },
336
- "percentage_comment": {
337
- "patterns": [
338
- {
339
- "begin": "(^[ \\t]+)?(?=%)",
340
- "beginCaptures": {
341
- "1": {
342
- "name": "punctuation.whitespace.comment.leading.bibtex"
343
- }
344
- },
345
- "end": "(?!\\G)",
346
- "patterns": [
347
- {
348
- "begin": "(?<!\\\\)%",
349
- "beginCaptures": {
350
- "0": {
351
- "name": "punctuation.definition.comment.bibtex"
352
- }
353
- },
354
- "end": "$\\n?",
355
- "name": "comment.line.percentage.bibtex"
314
+ "include": "#nested_braces"
356
315
  }
357
316
  ]
358
317
  }
359
318
  ]
360
- },
361
- "url_cmd": {
362
- "captures": {
363
- "1": {
364
- "name": "support.function.url.bibtex"
365
- },
366
- "2": {
367
- "name": "punctuation.definition.function.bibtex"
368
- },
369
- "3": {
370
- "name": "punctuation.definition.arguments.begin.bibtex"
371
- },
372
- "4": {
373
- "name": "markup.underline.link.bibtex"
374
- },
375
- "5": {
376
- "name": "punctuation.definition.arguments.end.bibtex"
377
- }
378
- },
379
- "match": "(?:\\s*)((\\\\)(?:url|href))(\\{)([^}]*)(\\})",
380
- "name": "meta.function.link.url.bibtex"
381
- },
382
- "url_field": {
383
- "begin": "(url)\\s*(\\=)",
384
- "beginCaptures": {
385
- "1": {
386
- "name": "support.function.key.bibtex"
387
- },
388
- "2": {
389
- "name": "punctuation.separator.key-value.bibtex"
390
- }
391
- },
392
- "end": "(?=[,}])",
393
- "name": "meta.key-assignment.url.bibtex",
394
- "patterns": [
395
- {
396
- "include": "#string_url"
397
- }
398
- ]
399
319
  }
400
320
  }
401
321
  }
@@ -4,7 +4,7 @@
4
4
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
5
  "Once accepted there, we are happy to receive an update request."
6
6
  ],
7
- "version": "https://github.com/jlelong/vscode-latex-basics/commit/30d04562e592305b6f6d41a539b3ccf326888aaf",
7
+ "version": "https://github.com/jlelong/vscode-latex-basics/commit/66ea1422ac817ff7704359b8ec4934a987024aaa",
8
8
  "name": "LaTeX",
9
9
  "scopeName": "text.tex.latex",
10
10
  "patterns": [
@@ -2356,7 +2356,7 @@
2356
2356
  "name": "meta.definition.label.latex",
2357
2357
  "patterns": [
2358
2358
  {
2359
- "match": "[a-zA-Z0-9\\.,:/*!^_-]",
2359
+ "match": "[\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]",
2360
2360
  "name": "variable.parameter.definition.label.latex"
2361
2361
  }
2362
2362
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-latex-default-extension",
3
- "version": "1.82.6",
3
+ "version": "1.83.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.82.6"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.83.1"
22
22
  }
23
23
  }