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