vscode-string-html/syntaxes/es6.inline.html.json

47 lines
1.0 KiB
JSON

{
"scopeName": "es6.inline.html",
"fileTypes": ["js"],
"injectionSelector": "L:source.js -comment -string",
"injections": {
"L:source": {
"patterns": [
{
"match": "<",
"name": "invalid.illegal.bad-angle-bracket.html"
}
]
}
},
"patterns": [
{
"contentName": "meta.embedded.block.html",
"begin": "(?i)(\\s*html)(`)",
"beginCaptures": {
"0": {
"name": "string.template.js, punctuation.definition.string.template.begin.js"
},
"1": {
"name": "entity.name.function.tagged-template.js"
}
},
"end": "(`)",
"endCaptures": {
"0": {
"name": "string.template.js, punctuation.definition.string.template.end.js"
}
},
"patterns": [
{
"include": "source.js#template-substitution-element"
},
{
"include": "text.html.basic"
}
]
},
{
"include": "source.js#template-substitution-element"
}
]
}
TypeScript 96.4%
JavaScript 3.6%