@blitz/textmate
Version:
TextMate Grammars for StackBlitz
39 lines (38 loc) • 1.03 kB
JSON
{
"information_for_contributors": ["This file has been extracted from https://github.com/silvenon/vscode-mdx"],
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "MDX",
"patterns": [{ "include": "#jsx" }, { "include": "#markdown" }],
"repository": {
"jsx": {
"patterns": [{ "include": "#jsx-module" }, { "include": "#jsx-tag" }],
"repository": {
"jsx-module": {
"patterns": [
{
"begin": "^(?=(import|export)\\b)",
"while": "^(?!\\s*$)",
"contentName": "source.js.jsx",
"patterns": [{ "include": "source.js.jsx" }]
}
]
},
"jsx-tag": {
"patterns": [
{
"begin": "^(?=<([a-z]|[A-Z]))",
"end": "(?<=>)",
"contentName": "source.js.jsx",
"patterns": [{ "include": "source.js.jsx" }]
}
]
}
}
},
"markdown": {
"contentName": "text.html.markdown",
"patterns": [{ "include": "text.html.markdown" }]
}
},
"scopeName": "text.html.markdown.jsx"
}