37 lines
869 B
JSON
37 lines
869 B
JSON
{
|
|
"scopeName": "es6.inline.css",
|
|
"fileTypes": ["js"],
|
|
"injectionSelector": "L:source.js -comment -string",
|
|
"patterns": [
|
|
{
|
|
"contentName": "meta.embedded.block.css",
|
|
"begin": "(?i)(\\s*css)(`)",
|
|
"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": "source.css.scss"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"include": "source.js#template-substitution-element"
|
|
}
|
|
]
|
|
}
|