Change included JS to embedded JS

This commit is contained in:
Matthias Portzel 2023-09-17 21:40:17 -04:00
parent a69928a730
commit 3c6b0fa167
1 changed files with 6 additions and 20 deletions

View File

@ -264,26 +264,12 @@ contexts:
captures:
1: punctuation.definition.tag.html
2: entity.name.tag.script.html
push:
- match: (</)((?i:script))
captures:
1: punctuation.definition.tag.html
2: entity.name.tag.script.html
pop: true
- match: (//).*?((?=</script)|$\n?)
scope: comment.line.double-slash.js
captures:
1: punctuation.definition.comment.js
- match: /\*
captures:
0: punctuation.definition.comment.js
push:
- meta_scope: comment.block.js
- match: \*/|(?=</script)
captures:
0: punctuation.definition.comment.js
pop: true
- include: scope:source.js
embed: scope:source.js
escape: "(</)(script)"
embed_scope: "inner-js-content"
escape_captures:
1: punctuation.definition.tag.html
2: entity.name.tag.script.html
- match: (</?)((?i:body|head|html)\b)
captures:
1: punctuation.definition.tag.html