astro-vscode 2.8.1 → 2.8.3
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/dist/node/server.js +104 -101
- package/package.json +2 -2
- package/syntaxes/astro.tmLanguage.json +17 -10
- package/syntaxes/astro.tmLanguage.src.yaml +15 -7
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.8.
|
|
27
|
+
"version": "2.8.3",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
]
|
|
209
209
|
},
|
|
210
210
|
"devDependencies": {
|
|
211
|
-
"@astrojs/language-server": "^2.8.
|
|
211
|
+
"@astrojs/language-server": "^2.8.3",
|
|
212
212
|
"@astrojs/ts-plugin": "^1.6.0",
|
|
213
213
|
"@types/glob": "^8.1.0",
|
|
214
214
|
"@types/mocha": "^10.0.1",
|
|
@@ -175,6 +175,9 @@
|
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"include": "#frontmatter"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"include": "#text"
|
|
178
181
|
}
|
|
179
182
|
],
|
|
180
183
|
"repository": {
|
|
@@ -211,16 +214,6 @@
|
|
|
211
214
|
},
|
|
212
215
|
{
|
|
213
216
|
"include": "#entities"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"begin": "(?<=>|})",
|
|
217
|
-
"end": "(?=<|{)",
|
|
218
|
-
"name": "text.astro",
|
|
219
|
-
"patterns": [
|
|
220
|
-
{
|
|
221
|
-
"include": "#entities"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
217
|
}
|
|
225
218
|
]
|
|
226
219
|
},
|
|
@@ -823,6 +816,20 @@
|
|
|
823
816
|
}
|
|
824
817
|
},
|
|
825
818
|
"name": "meta.scope.tag.$2.astro"
|
|
819
|
+
},
|
|
820
|
+
"text": {
|
|
821
|
+
"patterns": [
|
|
822
|
+
{
|
|
823
|
+
"begin": "(?<=^|---|>|})",
|
|
824
|
+
"end": "(?=<|{|$)",
|
|
825
|
+
"name": "text.astro",
|
|
826
|
+
"patterns": [
|
|
827
|
+
{
|
|
828
|
+
"include": "#entities"
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
]
|
|
826
833
|
}
|
|
827
834
|
}
|
|
828
835
|
}
|
|
@@ -165,6 +165,7 @@ injections:
|
|
|
165
165
|
patterns:
|
|
166
166
|
- include: '#scope'
|
|
167
167
|
- include: '#frontmatter'
|
|
168
|
+
- include: '#text'
|
|
168
169
|
|
|
169
170
|
# Contains all of our patterns.
|
|
170
171
|
repository:
|
|
@@ -193,13 +194,6 @@ repository:
|
|
|
193
194
|
- include: '#tags'
|
|
194
195
|
- include: '#interpolation'
|
|
195
196
|
- include: '#entities'
|
|
196
|
-
# Content text.
|
|
197
|
-
# This matches only in-between all the nodes - nothing inside of them.
|
|
198
|
-
- begin: (?<=>|})
|
|
199
|
-
end: (?=<|{)
|
|
200
|
-
name: text.astro
|
|
201
|
-
patterns:
|
|
202
|
-
- include: '#entities'
|
|
203
197
|
|
|
204
198
|
# ----------
|
|
205
199
|
# COMMENTS
|
|
@@ -516,3 +510,17 @@ repository:
|
|
|
516
510
|
endCaptures:
|
|
517
511
|
1: { name: meta.tag.end.astro punctuation.definition.tag.end.astro }
|
|
518
512
|
name: meta.scope.tag.$2.astro
|
|
513
|
+
|
|
514
|
+
# ------
|
|
515
|
+
# TEXT
|
|
516
|
+
# This will match any text outside frontmatter and scopes patterns.
|
|
517
|
+
|
|
518
|
+
text:
|
|
519
|
+
patterns:
|
|
520
|
+
# Content text.
|
|
521
|
+
# This matches nothing inside of tags, only in-between them and at the beginning/end of the file.
|
|
522
|
+
- begin: (?<=^|---|>|})
|
|
523
|
+
end: (?=<|{|$)
|
|
524
|
+
name: text.astro
|
|
525
|
+
patterns:
|
|
526
|
+
- include: '#entities'
|