File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,24 @@ patterns:
194194 patterns :
195195 - include : source.coffee
196196
197+ - name : source.livescript.embedded.html
198+ begin : (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="livescript(?:\?[^"]*)?")
199+ beginCaptures :
200+ ' 1 ' : {name: punctuation.definition.tag.begin.html}
201+ ' 2 ' : {name: entity.name.tag.script.html}
202+ end : (?<=</(script|SCRIPT))(>)(?:\s*\n)?
203+ endCaptures :
204+ ' 2 ' : {name: punctuation.definition.tag.html}
205+ patterns :
206+ - include : ' #tag-stuff'
207+ - begin : (?<!</(?:script|SCRIPT))(>)
208+ end : (</)((?i:script))
209+ captures :
210+ ' 1 ' : {name: punctuation.definition.tag.begin.html}
211+ ' 2 ' : {name: entity.name.tag.script.html}
212+ patterns :
213+ - include : source.livescript
214+
197215- name : source.js.embedded.html
198216 begin : (<)((?i:script))\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript|babel).*)))
199217 beginCaptures :
Original file line number Diff line number Diff line change 649649 </dict >
650650 </array >
651651 </dict >
652+ <dict >
653+ <key >begin </key >
654+ <string >(?:^\s+)?(< )((?i:script))\b(?=[^> ]*lang="livescript(?:\?[^"]*)?") </string >
655+ <key >beginCaptures </key >
656+ <dict >
657+ <key >1 </key >
658+ <dict >
659+ <key >name </key >
660+ <string >punctuation.definition.tag.begin.html </string >
661+ </dict >
662+ <key >2 </key >
663+ <dict >
664+ <key >name </key >
665+ <string >entity.name.tag.script.html </string >
666+ </dict >
667+ </dict >
668+ <key >end </key >
669+ <string >(?< =< /(script|SCRIPT))(> )(?:\s*\n)? </string >
670+ <key >endCaptures </key >
671+ <dict >
672+ <key >2 </key >
673+ <dict >
674+ <key >name </key >
675+ <string >punctuation.definition.tag.html </string >
676+ </dict >
677+ </dict >
678+ <key >name </key >
679+ <string >source.livescript.embedded.html </string >
680+ <key >patterns </key >
681+ <array >
682+ <dict >
683+ <key >include </key >
684+ <string >#tag-stuff </string >
685+ </dict >
686+ <dict >
687+ <key >begin </key >
688+ <string >(?< !< /(?:script|SCRIPT))(> ) </string >
689+ <key >captures </key >
690+ <dict >
691+ <key >1 </key >
692+ <dict >
693+ <key >name </key >
694+ <string >punctuation.definition.tag.begin.html </string >
695+ </dict >
696+ <key >2 </key >
697+ <dict >
698+ <key >name </key >
699+ <string >entity.name.tag.script.html </string >
700+ </dict >
701+ </dict >
702+ <key >end </key >
703+ <string >(< /)((?i:script)) </string >
704+ <key >patterns </key >
705+ <array >
706+ <dict >
707+ <key >include </key >
708+ <string >source.livescript </string >
709+ </dict >
710+ </array >
711+ </dict >
712+ </array >
713+ </dict >
652714 <dict >
653715 <key >begin </key >
654716 <string >(< )((?i:script))\b(?![^> ]*/> )(?![^> ]*(?i:type.?=.?text/((?!javascript|babel).*))) </string >
You can’t perform that action at this time.
0 commit comments