| 1 |
{ |
| 2 |
"$schema": "https://raw.githubusercontent.com/Septh/tmlanguage/master/tmlanguage.json", |
| 3 |
"name": "mdx", |
| 4 |
"patterns": [ |
| 5 |
{ |
| 6 |
"include": "#jsx" |
| 7 |
}, |
| 8 |
{ |
| 9 |
"include": "#markdown" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"include": "#jsx-evaluated-code" |
| 13 |
} |
| 14 |
], |
| 15 |
"repository": { |
| 16 |
"jsx": { |
| 17 |
"patterns": [ |
| 18 |
{ |
| 19 |
"include": "#jsx-module" |
| 20 |
}, |
| 21 |
{ |
| 22 |
"include": "#jsx-tag" |
| 23 |
}, |
| 24 |
{ |
| 25 |
"include": "#jsx-evaluated-code" |
| 26 |
} |
| 27 |
], |
| 28 |
"repository": { |
| 29 |
"jsx-module": { |
| 30 |
"patterns": [ |
| 31 |
{ |
| 32 |
"begin": "^(?=(import|export)\\b)", |
| 33 |
"while": "^(?!\\s*$)", |
| 34 |
"contentName": "source.js.jsx", |
| 35 |
"patterns": [ |
| 36 |
{ |
| 37 |
"include": "source.js.jsx" |
| 38 |
} |
| 39 |
] |
| 40 |
} |
| 41 |
] |
| 42 |
}, |
| 43 |
"jsx-tag": { |
| 44 |
"patterns": [ |
| 45 |
{ |
| 46 |
"begin": "^(?=< *([a-zA-Z]\\w*))", |
| 47 |
"end": "(?<=>)", |
| 48 |
"contentName": "source.js.jsx", |
| 49 |
"patterns": [ |
| 50 |
{ |
| 51 |
"include": "source.js.jsx" |
| 52 |
} |
| 53 |
] |
| 54 |
} |
| 55 |
] |
| 56 |
}, |
| 57 |
"jsx-evaluated-code": { |
| 58 |
"patterns": [ |
| 59 |
{ |
| 60 |
"begin": "(?!```$){", |
| 61 |
"end": "}", |
| 62 |
"contentName": "source.js.jsx", |
| 63 |
"patterns": [ |
| 64 |
{ |
| 65 |
"include": "source.js.jsx" |
| 66 |
} |
| 67 |
] |
| 68 |
} |
| 69 |
] |
| 70 |
} |
| 71 |
} |
| 72 |
}, |
| 73 |
"markdown": { |
| 74 |
"contentName": "text.html.markdown", |
| 75 |
"patterns": [ |
| 76 |
{ |
| 77 |
"include": "text.html.markdown" |
| 78 |
} |
| 79 |
] |
| 80 |
} |
| 81 |
}, |
| 82 |
"scopeName": "text.html.markdown.jsx" |
| 83 |
} |
| 84 |
|