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:
7979 patterns :
8080 - include : text.jade
8181
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+
8299- name : source.stylus.embedded.html
83100 begin : (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus(?:\?[^"]*)?")
84101 end : (</)((?i:style))(>)(?:\s*\n)?
Original file line number Diff line number Diff line change 263263 </dict >
264264 </array >
265265 </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 >
266320 <dict >
267321 <key >begin </key >
268322 <string >(?:^\s+)?(< )((?i:style))\b(?=[^> ]*lang="stylus(?:\?[^"]*)?") </string >
You can’t perform that action at this time.
0 commit comments