astro-vscode 2.14.0 → 2.14.2

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
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.14.0",
27
+ "version": "2.14.2",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -217,26 +217,27 @@
217
217
  }
218
218
  },
219
219
  {
220
- "scopeName": "text.mdx.astro.codeblock",
220
+ "scopeName": "source.mdx.astro",
221
221
  "path": "./syntaxes/mdx.astro.tmLanguage.json",
222
222
  "injectTo": [
223
223
  "source.mdx"
224
224
  ],
225
225
  "embeddedLanguages": {
226
- "mdx.embedded.astro": "astro"
226
+ "mdx.embedded.astro": "astro",
227
+ "mdx.embedded.astro.frontmatter": "typescriptreact"
227
228
  }
228
229
  }
229
230
  ]
230
231
  },
231
232
  "devDependencies": {
232
- "@astrojs/language-server": "^2.14.0",
233
- "@astrojs/ts-plugin": "^1.10.0",
233
+ "@astrojs/language-server": "^2.14.2",
234
+ "@astrojs/ts-plugin": "^1.10.2",
234
235
  "@types/glob": "^8.1.0",
235
236
  "@types/mocha": "^10.0.1",
236
237
  "@types/node": "^18.17.8",
237
238
  "@types/vscode": "^1.82.0",
238
- "@volar/language-server": "~2.4.0-alpha.15",
239
- "@volar/vscode": "~2.4.0-alpha.15",
239
+ "@volar/language-server": "~2.4.0",
240
+ "@volar/vscode": "~2.4.0",
240
241
  "@vscode/test-electron": "^2.3.2",
241
242
  "@vscode/vsce": "2.30.0",
242
243
  "esbuild": "^0.17.19",
@@ -1,84 +1,61 @@
1
1
  {
2
- "fileTypes": [],
3
- "scopeName": "text.mdx.astro.codeblock",
2
+ "scopeName": "source.mdx.astro",
4
3
  "injectionSelector": "L:source.mdx",
5
4
  "patterns": [
6
5
  {
7
- "begin": "(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?astro))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
8
- "beginCaptures": {
9
- "1": {
10
- "name": "string.other.begin.code.fenced.mdx"
11
- },
12
- "2": {
13
- "name": "entity.name.function.mdx"
14
- }
15
- },
16
- "contentName": "meta.embedded.astro",
17
- "end": "(\\1)(?:[\\t ]*$)",
18
- "endCaptures": {
19
- "1": {
20
- "name": "string.other.end.code.fenced.mdx"
21
- }
22
- },
23
- "name": "markup.code.astro.mdx",
24
- "patterns": [
25
- {
26
- "include": "#astro-code-block"
27
- }
28
- ]
29
- },
30
- {
31
- "begin": "(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?astro))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)",
6
+ "include": "#mdx_fenced_code_block_astro"
7
+ }
8
+ ],
9
+ "repository": {
10
+ "mdx_fenced_code_block_astro": {
11
+ "begin": "(?:^|\\G)[\\t ]*([`~]{3,})(?:[\\t ]*((?:astro|(?:.*\\.)?(?:astro)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
32
12
  "beginCaptures": {
33
13
  "1": {
34
- "name": "string.other.begin.code.fenced.mdx"
14
+ "name": "punctuation.definition.markdown"
35
15
  },
36
16
  "2": {
37
- "name": "entity.name.function.mdx"
17
+ "name": "entity.name.function.markdown"
38
18
  }
39
19
  },
40
- "contentName": "meta.embedded.astro",
41
- "end": "(\\1)(?:[\\t ]*$)",
20
+ "end": "(^\\1)\\s*$",
42
21
  "endCaptures": {
43
- "1": {
44
- "name": "string.other.end.code.fenced.mdx"
22
+ "3": {
23
+ "name": "punctuation.definition.markdown"
45
24
  }
46
25
  },
47
26
  "name": "markup.code.astro.mdx",
48
27
  "patterns": [
49
28
  {
50
- "include": "#astro-code-block"
51
- }
52
- ]
53
- }
54
- ],
55
- "repository": {
56
- "astro-code-block": {
57
- "patterns": [
58
- {
59
- "begin": "^\\s*---\\s*$",
60
- "end": "^\\s*---\\s*$",
61
- "beginCaptures": {
62
- "0": {
63
- "name": "punctuation.definition.tag.xi.begin.t"
64
- }
65
- },
66
- "endCaptures": {
67
- "0": {
68
- "name": "punctuation.definition.tag.xi.end.t"
69
- }
70
- },
71
- "contentName": "meta.embedded.block.astro.frontmatter",
29
+ "begin": "(^|\\G)(\\s*)(.*)",
30
+ "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
72
31
  "patterns": [
73
32
  {
74
- "include": "source.tsx"
33
+ "begin": "^\\s*---\\s*$",
34
+ "end": "^\\s*---\\s*$",
35
+ "beginCaptures": {
36
+ "0": {
37
+ "name": "punctuation.definition.tag.xi.begin.t"
38
+ }
39
+ },
40
+ "endCaptures": {
41
+ "0": {
42
+ "name": "punctuation.definition.tag.xi.end.t"
43
+ }
44
+ },
45
+ "contentName": "mdx.embedded.astro.frontmatter",
46
+ "patterns": [
47
+ {
48
+ "include": "source.tsx"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "contentName": "mdx.embedded.astro",
54
+ "include": "source.astro"
75
55
  }
76
56
  ]
77
- },
78
- {
79
- "include": "source.astro"
80
57
  }
81
58
  ]
82
59
  }
83
60
  }
84
- }
61
+ }