@cosense-toolbox/textmate 0.1.0-beta.5 → 0.1.0-beta.7

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.
@@ -21,6 +21,9 @@
21
21
  {
22
22
  "include": "#component"
23
23
  },
24
+ {
25
+ "include": "#command"
26
+ },
24
27
  {
25
28
  "include": "#quote"
26
29
  },
@@ -165,6 +168,14 @@
165
168
  }
166
169
  ]
167
170
  },
171
+ "command": {
172
+ "match": "^[ \\t\\u3000]*([$%] .+)$",
173
+ "captures": {
174
+ "1": {
175
+ "name": "markup.inline.raw.cosense"
176
+ }
177
+ }
178
+ },
168
179
  "quote": {
169
180
  "name": "markup.quote.cosense",
170
181
  "begin": "^[ \\t\\u3000]*(>[> ]*)",
@@ -182,13 +193,17 @@
182
193
  },
183
194
  "inline": {
184
195
  "patterns": [
196
+ {
197
+ "name": "markup.underline.link.media.cosense",
198
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)(?i:https?)://[^\\s\\[\\]]+\\.(?i:mp4|webm|mov)\\]\\]"
199
+ },
185
200
  {
186
201
  "name": "markup.underline.link.image.cosense",
187
- "match": "\\[\\[(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif))|(?:(?!\\]\\]).)*?\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#](?:(?!\\]\\]).)*)?)\\]\\]"
202
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif))|(?:(?!\\]\\]).)*?\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#](?:(?!\\]\\]).)*)?)\\]\\]"
188
203
  },
189
204
  {
190
205
  "name": "markup.bold.cosense",
191
- "match": "\\[\\[((?:(?!\\]\\]).)+)\\]\\]",
206
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)((?:(?!\\]\\]).)+)\\]\\]",
192
207
  "captures": {
193
208
  "1": {
194
209
  "patterns": [
@@ -201,7 +216,7 @@
201
216
  },
202
217
  {
203
218
  "name": "constant.other.formula.cosense",
204
- "begin": "\\[(?=\\$)(?=.*\\])",
219
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=\\$)(?=.*\\])",
205
220
  "end": "\\]|(?=$)",
206
221
  "patterns": [
207
222
  {
@@ -210,7 +225,7 @@
210
225
  ]
211
226
  },
212
227
  {
213
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
228
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
214
229
  "end": "\\]|(?=$)",
215
230
  "patterns": [
216
231
  {
@@ -223,7 +238,7 @@
223
238
  },
224
239
  {
225
240
  "name": "markup.underline.cosense",
226
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
241
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
227
242
  "end": "\\]|(?=$)",
228
243
  "patterns": [
229
244
  {
@@ -236,7 +251,7 @@
236
251
  },
237
252
  {
238
253
  "name": "markup.strikethrough.cosense",
239
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
254
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
240
255
  "end": "\\]|(?=$)",
241
256
  "patterns": [
242
257
  {
@@ -249,7 +264,7 @@
249
264
  },
250
265
  {
251
266
  "name": "markup.underline.cosense markup.strikethrough.cosense",
252
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
267
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
253
268
  "end": "\\]|(?=$)",
254
269
  "patterns": [
255
270
  {
@@ -262,7 +277,7 @@
262
277
  },
263
278
  {
264
279
  "name": "markup.italic.cosense",
265
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
280
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
266
281
  "end": "\\]|(?=$)",
267
282
  "patterns": [
268
283
  {
@@ -275,7 +290,7 @@
275
290
  },
276
291
  {
277
292
  "name": "markup.underline.cosense markup.italic.cosense",
278
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
293
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
279
294
  "end": "\\]|(?=$)",
280
295
  "patterns": [
281
296
  {
@@ -288,7 +303,7 @@
288
303
  },
289
304
  {
290
305
  "name": "markup.strikethrough.cosense markup.italic.cosense",
291
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
306
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
292
307
  "end": "\\]|(?=$)",
293
308
  "patterns": [
294
309
  {
@@ -301,7 +316,7 @@
301
316
  },
302
317
  {
303
318
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.italic.cosense",
304
- "begin": "\\[(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
319
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\*)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
305
320
  "end": "\\]|(?=$)",
306
321
  "patterns": [
307
322
  {
@@ -314,7 +329,7 @@
314
329
  },
315
330
  {
316
331
  "name": "markup.bold.cosense",
317
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
332
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
318
333
  "end": "\\]|(?=$)",
319
334
  "patterns": [
320
335
  {
@@ -327,7 +342,7 @@
327
342
  },
328
343
  {
329
344
  "name": "markup.underline.cosense markup.bold.cosense",
330
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
345
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
331
346
  "end": "\\]|(?=$)",
332
347
  "patterns": [
333
348
  {
@@ -340,7 +355,7 @@
340
355
  },
341
356
  {
342
357
  "name": "markup.strikethrough.cosense markup.bold.cosense",
343
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
358
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
344
359
  "end": "\\]|(?=$)",
345
360
  "patterns": [
346
361
  {
@@ -353,7 +368,7 @@
353
368
  },
354
369
  {
355
370
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.bold.cosense",
356
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
371
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
357
372
  "end": "\\]|(?=$)",
358
373
  "patterns": [
359
374
  {
@@ -366,7 +381,7 @@
366
381
  },
367
382
  {
368
383
  "name": "markup.italic.cosense markup.bold.cosense",
369
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
384
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
370
385
  "end": "\\]|(?=$)",
371
386
  "patterns": [
372
387
  {
@@ -379,7 +394,7 @@
379
394
  },
380
395
  {
381
396
  "name": "markup.underline.cosense markup.italic.cosense markup.bold.cosense",
382
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
397
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
383
398
  "end": "\\]|(?=$)",
384
399
  "patterns": [
385
400
  {
@@ -392,7 +407,7 @@
392
407
  },
393
408
  {
394
409
  "name": "markup.strikethrough.cosense markup.italic.cosense markup.bold.cosense",
395
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
410
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
396
411
  "end": "\\]|(?=$)",
397
412
  "patterns": [
398
413
  {
@@ -405,7 +420,7 @@
405
420
  },
406
421
  {
407
422
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.italic.cosense markup.bold.cosense",
408
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
423
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){1}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
409
424
  "end": "\\]|(?=$)",
410
425
  "patterns": [
411
426
  {
@@ -418,7 +433,7 @@
418
433
  },
419
434
  {
420
435
  "name": "markup.bold.level2.cosense",
421
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
436
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
422
437
  "end": "\\]|(?=$)",
423
438
  "patterns": [
424
439
  {
@@ -431,7 +446,7 @@
431
446
  },
432
447
  {
433
448
  "name": "markup.underline.cosense markup.bold.level2.cosense",
434
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
449
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
435
450
  "end": "\\]|(?=$)",
436
451
  "patterns": [
437
452
  {
@@ -444,7 +459,7 @@
444
459
  },
445
460
  {
446
461
  "name": "markup.strikethrough.cosense markup.bold.level2.cosense",
447
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
462
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
448
463
  "end": "\\]|(?=$)",
449
464
  "patterns": [
450
465
  {
@@ -457,7 +472,7 @@
457
472
  },
458
473
  {
459
474
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.bold.level2.cosense",
460
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
475
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
461
476
  "end": "\\]|(?=$)",
462
477
  "patterns": [
463
478
  {
@@ -470,7 +485,7 @@
470
485
  },
471
486
  {
472
487
  "name": "markup.italic.cosense markup.bold.level2.cosense",
473
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
488
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
474
489
  "end": "\\]|(?=$)",
475
490
  "patterns": [
476
491
  {
@@ -483,7 +498,7 @@
483
498
  },
484
499
  {
485
500
  "name": "markup.underline.cosense markup.italic.cosense markup.bold.level2.cosense",
486
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
501
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
487
502
  "end": "\\]|(?=$)",
488
503
  "patterns": [
489
504
  {
@@ -496,7 +511,7 @@
496
511
  },
497
512
  {
498
513
  "name": "markup.strikethrough.cosense markup.italic.cosense markup.bold.level2.cosense",
499
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
514
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
500
515
  "end": "\\]|(?=$)",
501
516
  "patterns": [
502
517
  {
@@ -509,7 +524,7 @@
509
524
  },
510
525
  {
511
526
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.italic.cosense markup.bold.level2.cosense",
512
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
527
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){2}[!\"#%&'()+,\\-./{|}<>_~=]*\\s)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
513
528
  "end": "\\]|(?=$)",
514
529
  "patterns": [
515
530
  {
@@ -522,7 +537,7 @@
522
537
  },
523
538
  {
524
539
  "name": "markup.bold.level3.cosense",
525
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
540
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
526
541
  "end": "\\]|(?=$)",
527
542
  "patterns": [
528
543
  {
@@ -535,7 +550,7 @@
535
550
  },
536
551
  {
537
552
  "name": "markup.underline.cosense markup.bold.level3.cosense",
538
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
553
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
539
554
  "end": "\\]|(?=$)",
540
555
  "patterns": [
541
556
  {
@@ -548,7 +563,7 @@
548
563
  },
549
564
  {
550
565
  "name": "markup.strikethrough.cosense markup.bold.level3.cosense",
551
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
566
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
552
567
  "end": "\\]|(?=$)",
553
568
  "patterns": [
554
569
  {
@@ -561,7 +576,7 @@
561
576
  },
562
577
  {
563
578
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.bold.level3.cosense",
564
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
579
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?![!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
565
580
  "end": "\\]|(?=$)",
566
581
  "patterns": [
567
582
  {
@@ -574,7 +589,7 @@
574
589
  },
575
590
  {
576
591
  "name": "markup.italic.cosense markup.bold.level3.cosense",
577
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
592
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
578
593
  "end": "\\]|(?=$)",
579
594
  "patterns": [
580
595
  {
@@ -587,7 +602,7 @@
587
602
  },
588
603
  {
589
604
  "name": "markup.underline.cosense markup.italic.cosense markup.bold.level3.cosense",
590
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
605
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
591
606
  "end": "\\]|(?=$)",
592
607
  "patterns": [
593
608
  {
@@ -600,7 +615,7 @@
600
615
  },
601
616
  {
602
617
  "name": "markup.strikethrough.cosense markup.italic.cosense markup.bold.level3.cosense",
603
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
618
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?![!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
604
619
  "end": "\\]|(?=$)",
605
620
  "patterns": [
606
621
  {
@@ -613,7 +628,7 @@
613
628
  },
614
629
  {
615
630
  "name": "markup.underline.cosense markup.strikethrough.cosense markup.italic.cosense markup.bold.level3.cosense",
616
- "begin": "\\[(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
631
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=(?:[!\"#%&'()+,\\-./{|}<>_~=]*\\*){3})(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?/)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?\\-)(?=[!\"#%&'()*+,\\-./{|}<>_~=]*?_)(?=[!\"#%&'()*+,\\-./{|}<>_~=]+\\s.*\\])[!\"#%&'()*+,\\-./{|}<>_~=]+\\s+",
617
632
  "end": "\\]|(?=$)",
618
633
  "patterns": [
619
634
  {
@@ -626,27 +641,47 @@
626
641
  },
627
642
  {
628
643
  "name": "string.other.link.icon.cosense",
629
- "match": "\\[[^\\[\\]]+\\.icon(?:\\*\\d+)?\\]"
644
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)[^\\[\\]]+\\.icon(?:\\*\\d+)?\\]"
645
+ },
646
+ {
647
+ "name": "markup.underline.link.media.cosense",
648
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:[NS]\\d+(?:\\.\\d+)?,[EW]\\d+(?:\\.\\d+)?(?:,Z\\d+)?(?:\\s+[^\\[\\]]+)?|[^\\[\\]]+?\\s+[NS]\\d+(?:\\.\\d+)?,[EW]\\d+(?:\\.\\d+)?(?:,Z\\d+)?)\\]"
649
+ },
650
+ {
651
+ "name": "markup.underline.link.media.cosense",
652
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:(?:https?://(?:www\\.|music\\.|)youtube\\.com/watch\\?(?:[^\\s\\[\\]]+&|)v=[a-zA-Z\\d_-]+(?:&[^\\s\\[\\]]+|))|(?:https?://youtu\\.be/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]{0,100}|))|(?:https?://(?:www\\.|)youtube\\.com/(?:shorts|live)/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]+|))|(?:https?://(?:www\\.|music\\.|)youtube\\.com/playlist\\?(?:[^\\s\\[\\]]+&|)list=[a-zA-Z\\d_-]+(?:&[^\\s\\[\\]]+|))|(?:(?i:https?://vimeo\\.com/[0-9]+(?:/[a-z0-9]+)?(?:\\?[^\\s\\[\\]]+|)))|(?:(?i:https?://open\\.spotify\\.com/(?:[^/\\s\\[\\]]+/|)(?:track|artist|playlist|album|episode|show)/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]{0,100}|)))|(?:(?i:https?://(?:anchor\\.fm|podcasters\\.spotify\\.com/pod/show)/[a-zA-Z\\d_-]+/episodes/[a-zA-Z\\d_-]+(?:/[a-zA-Z\\d_-]+)?(?:\\?[^\\s\\[\\]]{0,100}|)))|(?i:https?)://[^\\s\\[\\]]+\\.(?i:mp4|webm|mov)|(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac))\\]"
653
+ },
654
+ {
655
+ "name": "markup.underline.link.media.cosense",
656
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:(?i:https?)://[^\\s\\[\\]]+\\s+(?i:https?)://[^\\s\\[\\]]*\\.(?i:mp4|webm|mov)(?:\\?[^\\s\\[\\]]+)?|(?i:https?)://[^\\s\\[\\]]*\\.(?i:mp4|webm|mov)(?:\\?[^\\s\\[\\]]+)?\\s+(?i:https?)://[^\\s\\[\\]]+)\\]"
657
+ },
658
+ {
659
+ "name": "markup.underline.link.media.cosense",
660
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\s+(?!\\s*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))\\s*\\])[^\\[\\]]*\\]"
661
+ },
662
+ {
663
+ "name": "markup.underline.link.media.cosense",
664
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?!\\s*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))\\s+(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\])[^\\[\\]]+\\s(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\]"
630
665
  },
631
666
  {
632
667
  "name": "markup.underline.link.image.cosense",
633
- "match": "\\[\\s*(?:(?i:https?)://[^\\s\\[\\]]+\\s+)*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))(?=[\\s\\]])(?:\\s+(?i:https?)://[^\\s\\[\\]]+)*\\s*\\]"
668
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)\\s*(?:(?i:https?)://[^\\s\\[\\]]+\\s+)*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))(?=[\\s\\]])(?:\\s+(?i:https?)://[^\\s\\[\\]]+)*\\s*\\]"
634
669
  },
635
670
  {
636
671
  "name": "markup.underline.link.external.cosense",
637
- "match": "\\[[^\\[\\]]*(?i:https?)://[^\\s\\[\\]]+[^\\[\\]]*\\]"
672
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)[^\\[\\]]*(?i:https?)://[^\\s\\[\\]]+[^\\[\\]]*\\]"
638
673
  },
639
674
  {
640
675
  "name": "markup.underline.link.image.cosense",
641
- "match": "\\[[^\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)\\]"
676
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)[^\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)\\]"
642
677
  },
643
678
  {
644
679
  "name": "string.other.link.project.cosense",
645
- "match": "\\[/[^\\[\\]]*\\]"
680
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)/[^\\[\\]]*\\]"
646
681
  },
647
682
  {
648
683
  "name": "string.other.link.internal.cosense",
649
- "match": "\\[(?=[^\\[\\]]*[^\\s\\[\\]])[^\\[\\]]+\\]"
684
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=[^\\[\\]]*[^\\s\\[\\]])[^\\[\\]]+\\]"
650
685
  },
651
686
  {
652
687
  "name": "markup.inline.raw.cosense",
@@ -664,13 +699,17 @@
664
699
  },
665
700
  "inline-in-emphasis": {
666
701
  "patterns": [
702
+ {
703
+ "name": "markup.underline.link.media.cosense",
704
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)(?i:https?)://[^\\s\\[\\]]+\\.(?i:mp4|webm|mov)\\]\\]"
705
+ },
667
706
  {
668
707
  "name": "markup.underline.link.image.cosense",
669
- "match": "\\[\\[(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif))|(?:(?!\\]\\]).)*?\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#](?:(?!\\]\\]).)*)?)\\]\\]"
708
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif))|(?:(?!\\]\\]).)*?\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#](?:(?!\\]\\]).)*)?)\\]\\]"
670
709
  },
671
710
  {
672
711
  "name": "markup.bold.cosense",
673
- "match": "\\[\\[((?:(?!\\]\\]).)+)\\]\\]",
712
+ "match": "\\[\\[(?!(?:(?!\\]\\])[^\\x60])*\\x60.*\\x60)((?:(?!\\]\\]).)+)\\]\\]",
674
713
  "captures": {
675
714
  "1": {
676
715
  "patterns": [
@@ -683,7 +722,7 @@
683
722
  },
684
723
  {
685
724
  "name": "constant.other.formula.cosense",
686
- "begin": "\\[(?=\\$)(?=.*\\])",
725
+ "begin": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=\\$)(?=.*\\])",
687
726
  "end": "\\]|(?=$)",
688
727
  "patterns": [
689
728
  {
@@ -693,23 +732,43 @@
693
732
  },
694
733
  {
695
734
  "name": "string.other.link.icon.cosense",
696
- "match": "\\[[^\\[\\]]+\\.icon(?:\\*\\d+)?\\]"
735
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)[^\\[\\]]+\\.icon(?:\\*\\d+)?\\]"
736
+ },
737
+ {
738
+ "name": "markup.underline.link.media.cosense",
739
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:[NS]\\d+(?:\\.\\d+)?,[EW]\\d+(?:\\.\\d+)?(?:,Z\\d+)?(?:\\s+[^\\[\\]]+)?|[^\\[\\]]+?\\s+[NS]\\d+(?:\\.\\d+)?,[EW]\\d+(?:\\.\\d+)?(?:,Z\\d+)?)\\]"
740
+ },
741
+ {
742
+ "name": "markup.underline.link.media.cosense",
743
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:(?:https?://(?:www\\.|music\\.|)youtube\\.com/watch\\?(?:[^\\s\\[\\]]+&|)v=[a-zA-Z\\d_-]+(?:&[^\\s\\[\\]]+|))|(?:https?://youtu\\.be/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]{0,100}|))|(?:https?://(?:www\\.|)youtube\\.com/(?:shorts|live)/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]+|))|(?:https?://(?:www\\.|music\\.|)youtube\\.com/playlist\\?(?:[^\\s\\[\\]]+&|)list=[a-zA-Z\\d_-]+(?:&[^\\s\\[\\]]+|))|(?:(?i:https?://vimeo\\.com/[0-9]+(?:/[a-z0-9]+)?(?:\\?[^\\s\\[\\]]+|)))|(?:(?i:https?://open\\.spotify\\.com/(?:[^/\\s\\[\\]]+/|)(?:track|artist|playlist|album|episode|show)/[a-zA-Z\\d_-]+(?:\\?[^\\s\\[\\]]{0,100}|)))|(?:(?i:https?://(?:anchor\\.fm|podcasters\\.spotify\\.com/pod/show)/[a-zA-Z\\d_-]+/episodes/[a-zA-Z\\d_-]+(?:/[a-zA-Z\\d_-]+)?(?:\\?[^\\s\\[\\]]{0,100}|)))|(?i:https?)://[^\\s\\[\\]]+\\.(?i:mp4|webm|mov)|(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac))\\]"
744
+ },
745
+ {
746
+ "name": "markup.underline.link.media.cosense",
747
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?:(?i:https?)://[^\\s\\[\\]]+\\s+(?i:https?)://[^\\s\\[\\]]*\\.(?i:mp4|webm|mov)(?:\\?[^\\s\\[\\]]+)?|(?i:https?)://[^\\s\\[\\]]*\\.(?i:mp4|webm|mov)(?:\\?[^\\s\\[\\]]+)?\\s+(?i:https?)://[^\\s\\[\\]]+)\\]"
748
+ },
749
+ {
750
+ "name": "markup.underline.link.media.cosense",
751
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\s+(?!\\s*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))\\s*\\])[^\\[\\]]*\\]"
752
+ },
753
+ {
754
+ "name": "markup.underline.link.media.cosense",
755
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?!\\s*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))\\s+(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\])[^\\[\\]]+\\s(?i:https?)://[^\\s\\[\\]]*\\.(?i:wav|mp3|weba|ogg|aac)\\]"
697
756
  },
698
757
  {
699
758
  "name": "markup.underline.link.image.cosense",
700
- "match": "\\[\\s*(?:(?i:https?)://[^\\s\\[\\]]+\\s+)*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))(?=[\\s\\]])(?:\\s+(?i:https?)://[^\\s\\[\\]]+)*\\s*\\]"
759
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)\\s*(?:(?i:https?)://[^\\s\\[\\]]+\\s+)*(?:(?:(?i:https?://(?:i\\.)?gyazo\\.com/[0-9a-f]{20,})[^\\s\\[\\]]*)|(?:(?i:https?)://[^\\s\\[\\]?#]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)(?:[?#][^\\s\\[\\]]*)?)|(?:(?i:https?)://[^\\s\\[\\]#]*#[^\\s\\[\\]]*\\.(?i:png|jpe?g|gif|webp|svg|bmp|avif)))(?=[\\s\\]])(?:\\s+(?i:https?)://[^\\s\\[\\]]+)*\\s*\\]"
701
760
  },
702
761
  {
703
762
  "name": "markup.underline.link.external.cosense",
704
- "match": "\\[[^\\[\\]]*(?i:https?)://[^\\s\\[\\]]+[^\\[\\]]*\\]"
763
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)[^\\[\\]]*(?i:https?)://[^\\s\\[\\]]+[^\\[\\]]*\\]"
705
764
  },
706
765
  {
707
766
  "name": "string.other.link.project.cosense",
708
- "match": "\\[/[^\\[\\]]*\\]"
767
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)/[^\\[\\]]*\\]"
709
768
  },
710
769
  {
711
770
  "name": "string.other.link.internal.cosense",
712
- "match": "\\[(?=[^\\[\\]]*[^\\s\\[\\]])[^\\[\\]]+\\]"
771
+ "match": "\\[(?!(?:\\[[^\\[\\]]*\\]|[^\\]\\x60])*\\x60.*\\x60)(?=[^\\[\\]]*[^\\s\\[\\]])[^\\[\\]]+\\]"
713
772
  },
714
773
  {
715
774
  "name": "markup.inline.raw.cosense",