2023-03-03 12:07:45 +08:00
|
|
|
{
|
2023-06-06 15:26:41 +08:00
|
|
|
"scopeName": "es6.inline.html",
|
2023-06-06 18:35:39 +08:00
|
|
|
"fileTypes": ["js"],
|
|
|
|
"injectionSelector": "L:source.js -comment -string",
|
2023-03-03 12:07:45 +08:00
|
|
|
"injections": {
|
|
|
|
"L:source": {
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"match": "<",
|
|
|
|
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"contentName": "meta.embedded.block.html",
|
2023-06-06 18:35:39 +08:00
|
|
|
"begin": "(?i)(\\s*html)(`)",
|
2023-03-03 12:07:45 +08:00
|
|
|
"beginCaptures": {
|
|
|
|
"0": {
|
2023-06-06 18:35:39 +08:00
|
|
|
"name": "string.template.js, punctuation.definition.string.template.begin.js"
|
2023-03-03 12:07:45 +08:00
|
|
|
},
|
|
|
|
"1": {
|
2023-06-06 18:35:39 +08:00
|
|
|
"name": "entity.name.function.tagged-template.js"
|
2023-03-03 12:07:45 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"end": "(`)",
|
|
|
|
"endCaptures": {
|
|
|
|
"0": {
|
2023-06-06 18:35:39 +08:00
|
|
|
"name": "string.template.js, punctuation.definition.string.template.end.js"
|
2023-03-03 12:07:45 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"patterns": [
|
|
|
|
{
|
2023-06-06 18:35:39 +08:00
|
|
|
"include": "source.js#template-substitution-element"
|
2023-03-03 12:07:45 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "text.html.basic"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 18:35:39 +08:00
|
|
|
"include": "source.js#template-substitution-element"
|
2023-03-03 12:07:45 +08:00
|
|
|
}
|
2023-06-06 15:26:41 +08:00
|
|
|
]
|
2023-03-03 17:17:11 +08:00
|
|
|
}
|