@@ -169,15 +169,20 @@ contexts:
169
169
style-lang-attribute:
170
170
- match: (?i:lang){{attribute_name_break}}
171
171
scope: meta.attribute-with-value.html entity.other.attribute-name.html
172
- set:
173
- - meta_content_scope: meta.tag.style.begin.html meta.attribute-with-value.html
174
- - match: =
175
- scope: punctuation.separator.key-value.html
176
- set:
177
- - meta_scope: meta.tag.style.begin.html meta.attribute-with-value.html
178
- - include: style-lang-decider
179
- - match: (?=\S)
180
- set: style-css
172
+ set: style-lang-attribute-assignment
173
+
174
+ style-lang-attribute-assignment:
175
+ - meta_content_scope: meta.tag.style.begin.html meta.attribute-with-value.html
176
+ - match: =
177
+ scope: punctuation.separator.key-value.html
178
+ set: style-lang-attribute-value
179
+ - match: (?=\S)
180
+ set: style-css
181
+
182
+ style-lang-attribute-value:
183
+ - meta_include_prototype: false
184
+ - meta_scope: meta.tag.style.begin.html meta.attribute-with-value.html
185
+ - include: style-lang-decider
181
186
182
187
style-lang-decider:
183
188
- !style_language [ sass, source.sass ]
@@ -235,15 +240,20 @@ contexts:
235
240
script-lang-attribute:
236
241
- match: (?i:lang){{attribute_name_break}}
237
242
scope: meta.attribute-with-value.html entity.other.attribute-name.html
238
- set:
239
- - meta_content_scope: meta.tag.script.begin.html meta.attribute-with-value.html
240
- - match: =
241
- scope: punctuation.separator.key-value.html
242
- set:
243
- - meta_scope: meta.tag.script.begin.html meta.attribute-with-value.html
244
- - include: script-lang-decider
245
- - match: (?=\S)
246
- set: script-javascript
243
+ set: script-lang-attribute-assignment
244
+
245
+ script-lang-attribute-assignment:
246
+ - meta_content_scope: meta.tag.script.begin.html meta.attribute-with-value.html
247
+ - match: =
248
+ scope: punctuation.separator.key-value.html
249
+ set: script-lang-attribute-value
250
+ - match: (?=\S)
251
+ set: script-javascript
252
+
253
+ script-lang-attribute-value:
254
+ - meta_include_prototype: false
255
+ - meta_scope: meta.tag.script.begin.html meta.attribute-with-value.html
256
+ - include: script-lang-decider
247
257
248
258
script-lang-decider:
249
259
- !script_language [ coffee, source.coffee ]
@@ -284,15 +294,20 @@ contexts:
284
294
template-lang-attribute:
285
295
- match: (?i:lang){{attribute_name_break}}
286
296
scope: meta.attribute-with-value.html entity.other.attribute-name.html
287
- set:
288
- - meta_content_scope: meta.tag.template.begin.html meta.attribute-with-value.html
289
- - match: =
290
- scope: punctuation.separator.key-value.html
291
- set:
292
- - meta_scope: meta.tag.template.begin.html meta.attribute-with-value.html
293
- - include: template-lang-decider
294
- - match: (?=\S)
295
- set: template-mustache
297
+ set: template-lang-attribute-assignment
298
+
299
+ template-lang-attribute-assignment:
300
+ - meta_content_scope: meta.tag.template.begin.html meta.attribute-with-value.html
301
+ - match: =
302
+ scope: punctuation.separator.key-value.html
303
+ set: template-lang-attribute-value
304
+ - match: (?=\S)
305
+ set: template-mustache
306
+
307
+ template-lang-attribute-value:
308
+ - meta_include_prototype: false
309
+ - meta_scope: meta.tag.template.begin.html meta.attribute-with-value.html
310
+ - include: template-lang-decider
296
311
297
312
template-lang-decider:
298
313
- !template_language [ jade, text.jade ]
0 commit comments