File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,23 @@ patterns:
79
79
patterns :
80
80
- include : text.jade
81
81
82
+ - name : text.pug.embedded.html
83
+ begin : (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="pug(?:\?[^"]*)?")
84
+ end : (</)((?i:template))(>)(?:\s*\n)?
85
+ captures :
86
+ ' 1 ' : {name: punctuation.definition.tag.begin.html}
87
+ ' 2 ' : {name: entity.name.tag.style.html}
88
+ ' 3 ' : {name: punctuation.definition.tag.html}
89
+ patterns :
90
+ - include : ' #tag-stuff'
91
+ - begin : (>)
92
+ beginCaptures :
93
+ ' 1 ' : {name: punctuation.definition.tag.end.html}
94
+ end : (?=</(?i:template))
95
+ patterns :
96
+ - include : text.pug
97
+
98
+
82
99
- name : source.stylus.embedded.html
83
100
begin : (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus(?:\?[^"]*)?")
84
101
end : (</)((?i:style))(>)(?:\s*\n)?
Original file line number Diff line number Diff line change 263
263
</dict >
264
264
</array >
265
265
</dict >
266
+ <dict >
267
+ <key >begin </key >
268
+ <string >(?:^\s+)?(< )((?i:template))\b(?=[^> ]*lang="pug(?:\?[^"]*)?") </string >
269
+ <key >captures </key >
270
+ <dict >
271
+ <key >1 </key >
272
+ <dict >
273
+ <key >name </key >
274
+ <string >punctuation.definition.tag.begin.html </string >
275
+ </dict >
276
+ <key >2 </key >
277
+ <dict >
278
+ <key >name </key >
279
+ <string >entity.name.tag.style.html </string >
280
+ </dict >
281
+ <key >3 </key >
282
+ <dict >
283
+ <key >name </key >
284
+ <string >punctuation.definition.tag.html </string >
285
+ </dict >
286
+ </dict >
287
+ <key >end </key >
288
+ <string >(< /)((?i:template))(> )(?:\s*\n)? </string >
289
+ <key >name </key >
290
+ <string >text.pug.embedded.html </string >
291
+ <key >patterns </key >
292
+ <array >
293
+ <dict >
294
+ <key >include </key >
295
+ <string >#tag-stuff </string >
296
+ </dict >
297
+ <dict >
298
+ <key >begin </key >
299
+ <string >(> ) </string >
300
+ <key >beginCaptures </key >
301
+ <dict >
302
+ <key >1 </key >
303
+ <dict >
304
+ <key >name </key >
305
+ <string >punctuation.definition.tag.end.html </string >
306
+ </dict >
307
+ </dict >
308
+ <key >end </key >
309
+ <string >(?=< /(?i:template)) </string >
310
+ <key >patterns </key >
311
+ <array >
312
+ <dict >
313
+ <key >include </key >
314
+ <string >text.pug </string >
315
+ </dict >
316
+ </array >
317
+ </dict >
318
+ </array >
319
+ </dict >
266
320
<dict >
267
321
<key >begin </key >
268
322
<string >(?:^\s+)?(< )((?i:style))\b(?=[^> ]*lang="stylus(?:\?[^"]*)?") </string >
You can’t perform that action at this time.
0 commit comments