astro-vscode 2.16.16 → 2.16.17
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/CHANGELOG.md +6 -0
- package/dist/node/client.js +18 -18
- package/dist/node/server.js +284 -284
- package/languages/astro.code-snippets +48 -48
- package/package.json +4 -4
- package/syntaxes/astro.tmLanguage.json +84 -7
- package/syntaxes/astro.tmLanguage.src.yaml +56 -7
- package/test/grammar/dummy/css.tmLanguage-dummy.json +19 -2
- package/test/grammar/fixtures/style/at-property.astro +27 -0
- package/test/grammar/fixtures/style/at-property.astro.snap +91 -0
- package/test/grammar/fixtures/style/expression.astro.snap +23 -7
- package/test/grammar/fixtures/style/style.astro.snap +5 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"page_html": {
|
|
3
|
+
"prefix": "page_html",
|
|
4
|
+
"isFileTemplate": true,
|
|
5
|
+
"scope": "astro",
|
|
6
|
+
"body": [
|
|
7
|
+
"---",
|
|
8
|
+
"$1",
|
|
9
|
+
"---",
|
|
10
|
+
"",
|
|
11
|
+
"<html lang=\"en\">",
|
|
12
|
+
"\t<head>",
|
|
13
|
+
"\t\t<meta charset=\"utf-8\" />",
|
|
14
|
+
"\t\t<meta name=\"viewport\" content=\"width=device-width\" />",
|
|
15
|
+
"\t\t<meta name=\"generator\" content={Astro.generator} />",
|
|
16
|
+
"\t\t<title>${2:Document}</title>",
|
|
17
|
+
"\t</head>",
|
|
18
|
+
"\t<body>",
|
|
19
|
+
"\t\t$0",
|
|
20
|
+
"\t</body>",
|
|
21
|
+
"</html>"
|
|
22
|
+
],
|
|
23
|
+
"description": "Page with full HTML",
|
|
24
|
+
"include": "*.astro"
|
|
25
|
+
},
|
|
26
|
+
"page_layout": {
|
|
27
|
+
"prefix": "page_layout",
|
|
28
|
+
"isFileTemplate": true,
|
|
29
|
+
"scope": "astro",
|
|
30
|
+
"body": [
|
|
31
|
+
"---",
|
|
32
|
+
"import ${1:Layout} from \"../layouts/$1.astro\"",
|
|
33
|
+
"---",
|
|
34
|
+
"",
|
|
35
|
+
"<$1>",
|
|
36
|
+
"\t$0",
|
|
37
|
+
"</$1>"
|
|
38
|
+
],
|
|
39
|
+
"description": "Page from Layout",
|
|
40
|
+
"include": "*.astro"
|
|
41
|
+
},
|
|
42
|
+
"component": {
|
|
43
|
+
"prefix": "component",
|
|
44
|
+
"isFileTemplate": true,
|
|
45
|
+
"scope": "astro",
|
|
46
|
+
"body": ["---", "$1", "---", "", "$0"],
|
|
47
|
+
"description": "Component",
|
|
48
|
+
"include": "*.astro"
|
|
49
|
+
}
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.16.
|
|
27
|
+
"version": "2.16.17",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"@astrojs/ts-plugin": "^1.10.9",
|
|
240
240
|
"@types/js-yaml": "^4.0.9",
|
|
241
241
|
"@types/mocha": "^10.0.10",
|
|
242
|
-
"@types/node": "^
|
|
242
|
+
"@types/node": "^22.10.6",
|
|
243
243
|
"@types/vscode": "^1.101.0",
|
|
244
244
|
"@volar/language-server": "~2.4.28",
|
|
245
245
|
"@volar/vscode": "~2.4.28",
|
|
@@ -252,13 +252,13 @@
|
|
|
252
252
|
"kleur": "^4.1.5",
|
|
253
253
|
"mocha": "^11.7.5",
|
|
254
254
|
"ovsx": "^0.10.10",
|
|
255
|
-
"tsx": "^4.
|
|
255
|
+
"tsx": "^4.22.0",
|
|
256
256
|
"vscode-languageclient": "^9.0.1",
|
|
257
257
|
"vscode-tmgrammar-test": "^0.1.3"
|
|
258
258
|
},
|
|
259
259
|
"dependencies": {
|
|
260
260
|
"@astrojs/compiler": "^2.13.1",
|
|
261
|
-
"prettier": "^3.
|
|
261
|
+
"prettier": "^3.9.0",
|
|
262
262
|
"prettier-plugin-astro": "^0.14.1"
|
|
263
263
|
},
|
|
264
264
|
"scripts": {
|
|
@@ -98,9 +98,20 @@
|
|
|
98
98
|
},
|
|
99
99
|
"L:meta.style.astro meta.lang.stylus - (meta.embedded.block source)": {
|
|
100
100
|
"patterns": [
|
|
101
|
+
{
|
|
102
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
103
|
+
"end": "(?=</style[\\s>])",
|
|
104
|
+
"name": "meta.embedded.block.astro",
|
|
105
|
+
"contentName": "source.stylus",
|
|
106
|
+
"patterns": [
|
|
107
|
+
{
|
|
108
|
+
"include": "source.stylus"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
101
112
|
{
|
|
102
113
|
"begin": "(?<=>)(?!</)",
|
|
103
|
-
"
|
|
114
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
104
115
|
"name": "meta.embedded.block.astro",
|
|
105
116
|
"contentName": "source.stylus",
|
|
106
117
|
"patterns": [
|
|
@@ -113,9 +124,20 @@
|
|
|
113
124
|
},
|
|
114
125
|
"L:meta.style.astro meta.lang.sass - (meta.embedded.block source)": {
|
|
115
126
|
"patterns": [
|
|
127
|
+
{
|
|
128
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
129
|
+
"end": "(?=</style[\\s>])",
|
|
130
|
+
"name": "meta.embedded.block.astro",
|
|
131
|
+
"contentName": "source.sass",
|
|
132
|
+
"patterns": [
|
|
133
|
+
{
|
|
134
|
+
"include": "source.sass"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
116
138
|
{
|
|
117
139
|
"begin": "(?<=>)(?!</)",
|
|
118
|
-
"
|
|
140
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
119
141
|
"name": "meta.embedded.block.astro",
|
|
120
142
|
"contentName": "source.sass",
|
|
121
143
|
"patterns": [
|
|
@@ -128,9 +150,20 @@
|
|
|
128
150
|
},
|
|
129
151
|
"L:meta.style.astro meta.lang.css - (meta.embedded.block source)": {
|
|
130
152
|
"patterns": [
|
|
153
|
+
{
|
|
154
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
155
|
+
"end": "(?=</style[\\s>])",
|
|
156
|
+
"name": "meta.embedded.block.astro",
|
|
157
|
+
"contentName": "source.css",
|
|
158
|
+
"patterns": [
|
|
159
|
+
{
|
|
160
|
+
"include": "source.css"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
131
164
|
{
|
|
132
165
|
"begin": "(?<=>)(?!</)",
|
|
133
|
-
"
|
|
166
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
134
167
|
"name": "meta.embedded.block.astro",
|
|
135
168
|
"contentName": "source.css",
|
|
136
169
|
"patterns": [
|
|
@@ -143,9 +176,20 @@
|
|
|
143
176
|
},
|
|
144
177
|
"L:meta.style.astro meta.lang.scss - (meta.embedded.block source)": {
|
|
145
178
|
"patterns": [
|
|
179
|
+
{
|
|
180
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
181
|
+
"end": "(?=</style[\\s>])",
|
|
182
|
+
"name": "meta.embedded.block.astro",
|
|
183
|
+
"contentName": "source.css.scss",
|
|
184
|
+
"patterns": [
|
|
185
|
+
{
|
|
186
|
+
"include": "source.css.scss"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
146
190
|
{
|
|
147
191
|
"begin": "(?<=>)(?!</)",
|
|
148
|
-
"
|
|
192
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
149
193
|
"name": "meta.embedded.block.astro",
|
|
150
194
|
"contentName": "source.css.scss",
|
|
151
195
|
"patterns": [
|
|
@@ -158,9 +202,20 @@
|
|
|
158
202
|
},
|
|
159
203
|
"L:meta.style.astro meta.lang.less - (meta.embedded.block source)": {
|
|
160
204
|
"patterns": [
|
|
205
|
+
{
|
|
206
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
207
|
+
"end": "(?=</style[\\s>])",
|
|
208
|
+
"name": "meta.embedded.block.astro",
|
|
209
|
+
"contentName": "source.css.less",
|
|
210
|
+
"patterns": [
|
|
211
|
+
{
|
|
212
|
+
"include": "source.css.less"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
161
216
|
{
|
|
162
217
|
"begin": "(?<=>)(?!</)",
|
|
163
|
-
"
|
|
218
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
164
219
|
"name": "meta.embedded.block.astro",
|
|
165
220
|
"contentName": "source.css.less",
|
|
166
221
|
"patterns": [
|
|
@@ -173,9 +228,20 @@
|
|
|
173
228
|
},
|
|
174
229
|
"L:meta.style.astro meta.lang.postcss - (meta.embedded.block source)": {
|
|
175
230
|
"patterns": [
|
|
231
|
+
{
|
|
232
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
233
|
+
"end": "(?=</style[\\s>])",
|
|
234
|
+
"name": "meta.embedded.block.astro",
|
|
235
|
+
"contentName": "source.css.postcss",
|
|
236
|
+
"patterns": [
|
|
237
|
+
{
|
|
238
|
+
"include": "source.css.postcss"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
176
242
|
{
|
|
177
243
|
"begin": "(?<=>)(?!</)",
|
|
178
|
-
"
|
|
244
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
179
245
|
"name": "meta.embedded.block.astro",
|
|
180
246
|
"contentName": "source.css.postcss",
|
|
181
247
|
"patterns": [
|
|
@@ -188,9 +254,20 @@
|
|
|
188
254
|
},
|
|
189
255
|
"L:meta.style.astro - meta.lang - (meta.embedded.block source)": {
|
|
190
256
|
"patterns": [
|
|
257
|
+
{
|
|
258
|
+
"begin": "(?<=>)(?=[^\\n]+</style[\\s>])",
|
|
259
|
+
"end": "(?=</style[\\s>])",
|
|
260
|
+
"name": "meta.embedded.block.astro",
|
|
261
|
+
"contentName": "source.css",
|
|
262
|
+
"patterns": [
|
|
263
|
+
{
|
|
264
|
+
"include": "source.css"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
191
268
|
{
|
|
192
269
|
"begin": "(?<=>)(?!</)",
|
|
193
|
-
"
|
|
270
|
+
"while": "^(?!\\s*</style[\\s>])",
|
|
194
271
|
"name": "meta.embedded.block.astro",
|
|
195
272
|
"contentName": "source.css",
|
|
196
273
|
"patterns": [
|
|
@@ -95,9 +95,16 @@ injections:
|
|
|
95
95
|
'L:meta.style.astro meta.lang.stylus - (meta.embedded.block source)':
|
|
96
96
|
patterns:
|
|
97
97
|
[
|
|
98
|
+
{
|
|
99
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
100
|
+
end: '(?=</style[\s>])',
|
|
101
|
+
name: meta.embedded.block.astro,
|
|
102
|
+
contentName: source.stylus,
|
|
103
|
+
patterns: [{ include: source.stylus }],
|
|
104
|
+
},
|
|
98
105
|
{
|
|
99
106
|
begin: '(?<=>)(?!</)',
|
|
100
|
-
|
|
107
|
+
while: '^(?!\s*</style[\s>])',
|
|
101
108
|
name: meta.embedded.block.astro,
|
|
102
109
|
contentName: source.stylus,
|
|
103
110
|
patterns: [{ include: source.stylus }],
|
|
@@ -108,9 +115,16 @@ injections:
|
|
|
108
115
|
'L:meta.style.astro meta.lang.sass - (meta.embedded.block source)':
|
|
109
116
|
patterns:
|
|
110
117
|
[
|
|
118
|
+
{
|
|
119
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
120
|
+
end: '(?=</style[\s>])',
|
|
121
|
+
name: meta.embedded.block.astro,
|
|
122
|
+
contentName: source.sass,
|
|
123
|
+
patterns: [{ include: source.sass }],
|
|
124
|
+
},
|
|
111
125
|
{
|
|
112
126
|
begin: '(?<=>)(?!</)',
|
|
113
|
-
|
|
127
|
+
while: '^(?!\s*</style[\s>])',
|
|
114
128
|
name: meta.embedded.block.astro,
|
|
115
129
|
contentName: source.sass,
|
|
116
130
|
patterns: [{ include: source.sass }],
|
|
@@ -121,9 +135,16 @@ injections:
|
|
|
121
135
|
'L:meta.style.astro meta.lang.css - (meta.embedded.block source)':
|
|
122
136
|
patterns:
|
|
123
137
|
[
|
|
138
|
+
{
|
|
139
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
140
|
+
end: '(?=</style[\s>])',
|
|
141
|
+
name: meta.embedded.block.astro,
|
|
142
|
+
contentName: source.css,
|
|
143
|
+
patterns: [{ include: source.css }],
|
|
144
|
+
},
|
|
124
145
|
{
|
|
125
146
|
begin: '(?<=>)(?!</)',
|
|
126
|
-
|
|
147
|
+
while: '^(?!\s*</style[\s>])',
|
|
127
148
|
name: meta.embedded.block.astro,
|
|
128
149
|
contentName: source.css,
|
|
129
150
|
patterns: [{ include: source.css }],
|
|
@@ -134,9 +155,16 @@ injections:
|
|
|
134
155
|
'L:meta.style.astro meta.lang.scss - (meta.embedded.block source)':
|
|
135
156
|
patterns:
|
|
136
157
|
[
|
|
158
|
+
{
|
|
159
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
160
|
+
end: '(?=</style[\s>])',
|
|
161
|
+
name: meta.embedded.block.astro,
|
|
162
|
+
contentName: source.css.scss,
|
|
163
|
+
patterns: [{ include: source.css.scss }],
|
|
164
|
+
},
|
|
137
165
|
{
|
|
138
166
|
begin: '(?<=>)(?!</)',
|
|
139
|
-
|
|
167
|
+
while: '^(?!\s*</style[\s>])',
|
|
140
168
|
name: meta.embedded.block.astro,
|
|
141
169
|
contentName: source.css.scss,
|
|
142
170
|
patterns: [{ include: source.css.scss }],
|
|
@@ -147,9 +175,16 @@ injections:
|
|
|
147
175
|
'L:meta.style.astro meta.lang.less - (meta.embedded.block source)':
|
|
148
176
|
patterns:
|
|
149
177
|
[
|
|
178
|
+
{
|
|
179
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
180
|
+
end: '(?=</style[\s>])',
|
|
181
|
+
name: meta.embedded.block.astro,
|
|
182
|
+
contentName: source.css.less,
|
|
183
|
+
patterns: [{ include: source.css.less }],
|
|
184
|
+
},
|
|
150
185
|
{
|
|
151
186
|
begin: '(?<=>)(?!</)',
|
|
152
|
-
|
|
187
|
+
while: '^(?!\s*</style[\s>])',
|
|
153
188
|
name: meta.embedded.block.astro,
|
|
154
189
|
contentName: source.css.less,
|
|
155
190
|
patterns: [{ include: source.css.less }],
|
|
@@ -160,9 +195,16 @@ injections:
|
|
|
160
195
|
'L:meta.style.astro meta.lang.postcss - (meta.embedded.block source)':
|
|
161
196
|
patterns:
|
|
162
197
|
[
|
|
198
|
+
{
|
|
199
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
200
|
+
end: '(?=</style[\s>])',
|
|
201
|
+
name: meta.embedded.block.astro,
|
|
202
|
+
contentName: source.css.postcss,
|
|
203
|
+
patterns: [{ include: source.css.postcss }],
|
|
204
|
+
},
|
|
163
205
|
{
|
|
164
206
|
begin: '(?<=>)(?!</)',
|
|
165
|
-
|
|
207
|
+
while: '^(?!\s*</style[\s>])',
|
|
166
208
|
name: meta.embedded.block.astro,
|
|
167
209
|
contentName: source.css.postcss,
|
|
168
210
|
patterns: [{ include: source.css.postcss }],
|
|
@@ -173,9 +215,16 @@ injections:
|
|
|
173
215
|
'L:meta.style.astro - meta.lang - (meta.embedded.block source)':
|
|
174
216
|
patterns:
|
|
175
217
|
[
|
|
218
|
+
{
|
|
219
|
+
begin: '(?<=>)(?=[^\n]+</style[\s>])',
|
|
220
|
+
end: '(?=</style[\s>])',
|
|
221
|
+
name: meta.embedded.block.astro,
|
|
222
|
+
contentName: source.css,
|
|
223
|
+
patterns: [{ include: source.css }],
|
|
224
|
+
},
|
|
176
225
|
{
|
|
177
226
|
begin: '(?<=>)(?!</)',
|
|
178
|
-
|
|
227
|
+
while: '^(?!\s*</style[\s>])',
|
|
179
228
|
name: meta.embedded.block.astro,
|
|
180
229
|
contentName: source.css,
|
|
181
230
|
patterns: [{ include: source.css }],
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"comment": "
|
|
3
|
-
"scopeName": "source.css"
|
|
2
|
+
"comment": "CSS TextMate grammar for testing. Includes a minimal selector pattern that simulates VS Code's real CSS grammar behavior where < in @property's syntax descriptor triggers a selector scope.",
|
|
3
|
+
"scopeName": "source.css",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"name": "meta.selector.css",
|
|
7
|
+
"begin": "\\s*(?=[\\w.<])",
|
|
8
|
+
"end": "(?=\\{)",
|
|
9
|
+
"patterns": [
|
|
10
|
+
{
|
|
11
|
+
"name": "entity.name.tag.css",
|
|
12
|
+
"match": "[a-zA-Z][\\w-]*"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "keyword.operator.combinator.css",
|
|
16
|
+
"match": "[>+~]"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
4
21
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
console.log(window);
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<style>
|
|
6
|
+
@property --logo-color {
|
|
7
|
+
syntax: "<color>";
|
|
8
|
+
inherits: false;
|
|
9
|
+
initial-value: #c0ffee;
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
|
|
13
|
+
<style>
|
|
14
|
+
div {
|
|
15
|
+
background: red;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
console.log(window);
|
|
21
|
+
|
|
22
|
+
function testFunc() {
|
|
23
|
+
console.log("test");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
testFunc();
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
><script>
|
|
2
|
+
#^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
|
|
3
|
+
# ^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro entity.name.tag.astro
|
|
4
|
+
# ^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
5
|
+
> console.log(window);
|
|
6
|
+
#^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
7
|
+
></script>
|
|
8
|
+
#^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
9
|
+
# ^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro entity.name.tag.astro
|
|
10
|
+
# ^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro punctuation.definition.tag.end.astro
|
|
11
|
+
>
|
|
12
|
+
><style>
|
|
13
|
+
#^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
|
|
14
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro entity.name.tag.astro
|
|
15
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
16
|
+
> @property --logo-color {
|
|
17
|
+
#^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
18
|
+
# ^^^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
19
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
20
|
+
# ^^^^^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
21
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
22
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
23
|
+
> syntax: "<color>";
|
|
24
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
25
|
+
# ^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
26
|
+
# ^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
27
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
28
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css keyword.operator.combinator.css
|
|
29
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
30
|
+
> inherits: false;
|
|
31
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
32
|
+
# ^^^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
33
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
34
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
35
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
36
|
+
> initial-value: #c0ffee;
|
|
37
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
38
|
+
# ^^^^^^^^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
39
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
40
|
+
# ^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
41
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
42
|
+
> }
|
|
43
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
44
|
+
></style>
|
|
45
|
+
#^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
46
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro entity.name.tag.astro
|
|
47
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.end.astro
|
|
48
|
+
>
|
|
49
|
+
><style>
|
|
50
|
+
#^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
|
|
51
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro entity.name.tag.astro
|
|
52
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
53
|
+
> div {
|
|
54
|
+
#^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
55
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
56
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
57
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
58
|
+
> background: red;
|
|
59
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
60
|
+
# ^^^^^^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
61
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
62
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
63
|
+
# ^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
64
|
+
> }
|
|
65
|
+
#^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
66
|
+
></style>
|
|
67
|
+
#^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
68
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro entity.name.tag.astro
|
|
69
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.end.astro
|
|
70
|
+
>
|
|
71
|
+
><script>
|
|
72
|
+
#^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
|
|
73
|
+
# ^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro entity.name.tag.astro
|
|
74
|
+
# ^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
75
|
+
> console.log(window);
|
|
76
|
+
#^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
77
|
+
>
|
|
78
|
+
> function testFunc() {
|
|
79
|
+
#^^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
80
|
+
> console.log("test");
|
|
81
|
+
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
82
|
+
> }
|
|
83
|
+
#^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
84
|
+
>
|
|
85
|
+
> testFunc();
|
|
86
|
+
#^^^^^^^^^^^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.embedded.block.astro source.js
|
|
87
|
+
></script>
|
|
88
|
+
#^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
89
|
+
# ^^^^^^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro entity.name.tag.astro
|
|
90
|
+
# ^ source.astro meta.scope.tag.script.astro meta.script.astro meta.tag.end.astro punctuation.definition.tag.end.astro
|
|
91
|
+
>
|
|
@@ -14,9 +14,18 @@
|
|
|
14
14
|
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro entity.name.tag.astro
|
|
15
15
|
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
16
16
|
> .gallery { display: grid; }
|
|
17
|
-
|
|
17
|
+
#^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
18
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
19
|
+
# ^^^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
20
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
21
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
22
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
23
|
+
# ^^^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
24
|
+
# ^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
25
|
+
# ^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
26
|
+
# ^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
18
27
|
> </style>
|
|
19
|
-
#^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro
|
|
28
|
+
#^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro
|
|
20
29
|
# ^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
21
30
|
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro entity.name.tag.astro
|
|
22
31
|
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.end.astro
|
|
@@ -30,9 +39,16 @@
|
|
|
30
39
|
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
|
|
31
40
|
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro entity.name.tag.astro
|
|
32
41
|
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
42
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
43
|
+
# ^^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
44
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
45
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
46
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
47
|
+
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
48
|
+
# ^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
49
|
+
# ^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
50
|
+
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
51
|
+
# ^^^^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
52
|
+
# ^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css keyword.operator.combinator.css
|
|
53
|
+
# ^^ source.astro meta.embedded.expression.astro source.tsx meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
38
54
|
>
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro entity.name.tag.astro
|
|
4
4
|
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.start.astro punctuation.definition.tag.end.astro
|
|
5
5
|
> .astro {}
|
|
6
|
-
|
|
6
|
+
#^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
7
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
8
|
+
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css entity.name.tag.css
|
|
9
|
+
# ^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css meta.selector.css
|
|
10
|
+
# ^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.embedded.block.astro source.css
|
|
7
11
|
></style>
|
|
8
12
|
#^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
|
|
9
13
|
# ^^^^^ source.astro meta.scope.tag.style.astro meta.style.astro meta.tag.end.astro entity.name.tag.astro
|