|
| 1 | +{ |
| 2 | + "scopeName": "inline.cssx-style-template-literal", |
| 3 | + "injectionSelector": "L:source.ts -comment -string, L:source.tsx -comment -string, L:source.js -comment -string, L:source.jsx -comment -string", |
| 4 | + "patterns": [ |
| 5 | + { |
| 6 | + "include": "#styl-tagged-template" |
| 7 | + }, |
| 8 | + { |
| 9 | + "include": "#css-tagged-template" |
| 10 | + } |
| 11 | + ], |
| 12 | + "repository": { |
| 13 | + "styl-tagged-template": { |
| 14 | + "begin": "(?<![\\w$])styl([ \\t]*)(`)", |
| 15 | + "beginCaptures": { |
| 16 | + "2": { |
| 17 | + "name": "punctuation.definition.string.template.begin.ts" |
| 18 | + } |
| 19 | + }, |
| 20 | + "end": "(`)", |
| 21 | + "endCaptures": { |
| 22 | + "1": { |
| 23 | + "name": "punctuation.definition.string.template.end.ts" |
| 24 | + } |
| 25 | + }, |
| 26 | + "name": "meta.embedded.inline.stylus", |
| 27 | + "contentName": "source.stylus", |
| 28 | + "patterns": [ |
| 29 | + { |
| 30 | + "include": "#js-template-interpolation" |
| 31 | + }, |
| 32 | + { |
| 33 | + "include": "source.stylus" |
| 34 | + } |
| 35 | + ] |
| 36 | + }, |
| 37 | + "css-tagged-template": { |
| 38 | + "begin": "(?<![\\w$])css([ \\t]*)(`)", |
| 39 | + "beginCaptures": { |
| 40 | + "2": { |
| 41 | + "name": "punctuation.definition.string.template.begin.ts" |
| 42 | + } |
| 43 | + }, |
| 44 | + "end": "(`)", |
| 45 | + "endCaptures": { |
| 46 | + "1": { |
| 47 | + "name": "punctuation.definition.string.template.end.ts" |
| 48 | + } |
| 49 | + }, |
| 50 | + "name": "meta.embedded.inline.css", |
| 51 | + "contentName": "source.css", |
| 52 | + "patterns": [ |
| 53 | + { |
| 54 | + "include": "#js-template-interpolation" |
| 55 | + }, |
| 56 | + { |
| 57 | + "include": "source.css" |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + "js-template-interpolation": { |
| 62 | + "begin": "(\\$\\{)", |
| 63 | + "beginCaptures": { |
| 64 | + "1": { |
| 65 | + "name": "punctuation.definition.template-expression.begin.ts" |
| 66 | + } |
| 67 | + }, |
| 68 | + "end": "(\\})", |
| 69 | + "endCaptures": { |
| 70 | + "1": { |
| 71 | + "name": "punctuation.definition.template-expression.end.ts" |
| 72 | + } |
| 73 | + }, |
| 74 | + "name": "meta.embedded.expression.js.template", |
| 75 | + "patterns": [ |
| 76 | + { |
| 77 | + "include": "source.tsx" |
| 78 | + }, |
| 79 | + { |
| 80 | + "include": "source.ts" |
| 81 | + }, |
| 82 | + { |
| 83 | + "include": "source.js" |
| 84 | + } |
| 85 | + ] |
| 86 | + } |
| 87 | + } |
| 88 | +} |
0 commit comments