astro-vscode 2.8.4 → 2.8.5
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/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Astro",
|
|
3
3
|
"scopeName": "source.astro",
|
|
4
|
-
"fileTypes": [
|
|
4
|
+
"fileTypes": [
|
|
5
|
+
"astro"
|
|
6
|
+
],
|
|
5
7
|
"injections": {
|
|
6
8
|
"L:(meta.script.astro) (meta.lang.json) - (meta source)": {
|
|
7
9
|
"patterns": [
|
|
@@ -347,6 +349,12 @@
|
|
|
347
349
|
},
|
|
348
350
|
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
|
|
349
351
|
"patterns": [
|
|
352
|
+
{
|
|
353
|
+
"include": "#interpolation"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"include": "#attribute-literal"
|
|
357
|
+
},
|
|
350
358
|
{
|
|
351
359
|
"begin": "(?=[^\\s=<>`/]|/(?!>))",
|
|
352
360
|
"end": "(?!\\G)",
|
|
@@ -523,6 +531,19 @@
|
|
|
523
531
|
}
|
|
524
532
|
]
|
|
525
533
|
},
|
|
534
|
+
"attribute-literal": {
|
|
535
|
+
"begin": "(`)",
|
|
536
|
+
"end": "\\1",
|
|
537
|
+
"name": "string.template.astro",
|
|
538
|
+
"patterns": [
|
|
539
|
+
{
|
|
540
|
+
"include": "source.tsx#template-substitution-element"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"include": "source.tsx#string-character-escape"
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
526
547
|
"attributes-value": {
|
|
527
548
|
"patterns": [
|
|
528
549
|
{
|
|
@@ -548,17 +569,7 @@
|
|
|
548
569
|
"name": "string.quoted.astro"
|
|
549
570
|
},
|
|
550
571
|
{
|
|
551
|
-
"
|
|
552
|
-
"end": "\\1",
|
|
553
|
-
"name": "string.template.astro",
|
|
554
|
-
"patterns": [
|
|
555
|
-
{
|
|
556
|
-
"include": "source.tsx#template-substitution-element"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"include": "source.tsx#string-character-escape"
|
|
560
|
-
}
|
|
561
|
-
]
|
|
572
|
+
"include": "#attribute-literal"
|
|
562
573
|
}
|
|
563
574
|
]
|
|
564
575
|
},
|
|
@@ -832,4 +843,4 @@
|
|
|
832
843
|
]
|
|
833
844
|
}
|
|
834
845
|
}
|
|
835
|
-
}
|
|
846
|
+
}
|
|
@@ -284,6 +284,8 @@ repository:
|
|
|
284
284
|
beginCaptures: { 0: { name: punctuation.separator.key-value.astro } }
|
|
285
285
|
end: (?<=[^\s=])(?!\s*=)|(?=/?>)
|
|
286
286
|
patterns:
|
|
287
|
+
- include: '#interpolation'
|
|
288
|
+
- include: '#attribute-literal'
|
|
287
289
|
- begin: (?=[^\s=<>`/]|/(?!>))
|
|
288
290
|
end: (?!\G)
|
|
289
291
|
name: meta.embedded.line.js
|
|
@@ -355,6 +357,14 @@ repository:
|
|
|
355
357
|
end: (?<=[^\s=])(?!\s*=)|(?=/?>)
|
|
356
358
|
patterns: [include: '#attributes-value']
|
|
357
359
|
|
|
360
|
+
attribute-literal:
|
|
361
|
+
begin: (`)
|
|
362
|
+
end: \1
|
|
363
|
+
name: string.template.astro
|
|
364
|
+
patterns:
|
|
365
|
+
- include: 'source.tsx#template-substitution-element'
|
|
366
|
+
- include: 'source.tsx#string-character-escape'
|
|
367
|
+
|
|
358
368
|
# The value part of attribute key-values. e.g. `"my-class"` in `class="my-class"`
|
|
359
369
|
attributes-value:
|
|
360
370
|
patterns:
|
|
@@ -370,12 +380,7 @@ repository:
|
|
|
370
380
|
endCaptures: { 0: { name: punctuation.definition.string.end.astro } }
|
|
371
381
|
name: string.quoted.astro
|
|
372
382
|
# Template literals
|
|
373
|
-
-
|
|
374
|
-
end: \1
|
|
375
|
-
name: string.template.astro
|
|
376
|
-
patterns:
|
|
377
|
-
- include: 'source.tsx#template-substitution-element'
|
|
378
|
-
- include: 'source.tsx#string-character-escape'
|
|
383
|
+
- include: '#attribute-literal'
|
|
379
384
|
|
|
380
385
|
# ------
|
|
381
386
|
# TAGS
|