-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmdx.tmLanguage.json
49 lines (49 loc) · 1.16 KB
/
mdx.tmLanguage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Markdown React",
"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"
}