Skip to content

Commit dad4be4

Browse files
committed
Add new mdx grammar
1 parent 7d61afb commit dad4be4

File tree

9 files changed

+4445
-65
lines changed

9 files changed

+4445
-65
lines changed

.changeset/rotten-impalas-breathe.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@code-hike/lighter": patch
3+
---
4+
5+
Update grammars

lib/dist/browser.esm.mjs

+4-6
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ const aliasOrIdToScope = {
457457
md: "text.html.markdown",
458458
marko: "text.marko",
459459
matlab: "source.matlab",
460-
mdx: "text.html.markdown.jsx",
460+
mdx: "source.mdx",
461461
mermaid: "source.mermaid",
462462
nginx: "source.nginx",
463463
nim: "source.nim",
@@ -1292,7 +1292,6 @@ const scopeToLanguageData = {
12921292
"source.ini",
12931293
"text.html.basic",
12941294
"source.css",
1295-
"source.applescript",
12961295
],
12971296
},
12981297
"text.marko": {
@@ -1310,7 +1309,7 @@ const scopeToLanguageData = {
13101309
path: "matlab.tmLanguage.json",
13111310
embeddedScopes: [],
13121311
},
1313-
"text.html.markdown.jsx": {
1312+
"source.mdx": {
13141313
id: "mdx",
13151314
path: "mdx.tmLanguage.json",
13161315
embeddedScopes: [
@@ -1328,7 +1327,6 @@ const scopeToLanguageData = {
13281327
"source.dart",
13291328
"source.fsharp",
13301329
"source.cs",
1331-
"source.tsx",
13321330
"source.ts",
13331331
"source.shell",
13341332
"source.scala",
@@ -1356,7 +1354,6 @@ const scopeToLanguageData = {
13561354
"source.coffee",
13571355
"source.clojure",
13581356
"source.batchfile",
1359-
"source.yaml",
13601357
"text.xml.xsl",
13611358
"text.xml",
13621359
"source.asp.vb.net",
@@ -1371,9 +1368,10 @@ const scopeToLanguageData = {
13711368
"source.ini",
13721369
"text.html.basic",
13731370
"source.css",
1371+
"source.tsx",
1372+
"source.yaml",
13741373
"text.html.markdown",
13751374
"source.js.jsx",
1376-
"source.applescript",
13771375
],
13781376
},
13791377
"source.mermaid": {

lib/dist/index.cjs.js

+4-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/dist/index.esm.mjs

+4-6
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ const aliasOrIdToScope = {
803803
md: "text.html.markdown",
804804
marko: "text.marko",
805805
matlab: "source.matlab",
806-
mdx: "text.html.markdown.jsx",
806+
mdx: "source.mdx",
807807
mermaid: "source.mermaid",
808808
nginx: "source.nginx",
809809
nim: "source.nim",
@@ -1638,7 +1638,6 @@ const scopeToLanguageData = {
16381638
"source.ini",
16391639
"text.html.basic",
16401640
"source.css",
1641-
"source.applescript",
16421641
],
16431642
},
16441643
"text.marko": {
@@ -1656,7 +1655,7 @@ const scopeToLanguageData = {
16561655
path: "matlab.tmLanguage.json",
16571656
embeddedScopes: [],
16581657
},
1659-
"text.html.markdown.jsx": {
1658+
"source.mdx": {
16601659
id: "mdx",
16611660
path: "mdx.tmLanguage.json",
16621661
embeddedScopes: [
@@ -1674,7 +1673,6 @@ const scopeToLanguageData = {
16741673
"source.dart",
16751674
"source.fsharp",
16761675
"source.cs",
1677-
"source.tsx",
16781676
"source.ts",
16791677
"source.shell",
16801678
"source.scala",
@@ -1702,7 +1700,6 @@ const scopeToLanguageData = {
17021700
"source.coffee",
17031701
"source.clojure",
17041702
"source.batchfile",
1705-
"source.yaml",
17061703
"text.xml.xsl",
17071704
"text.xml",
17081705
"source.asp.vb.net",
@@ -1717,9 +1714,10 @@ const scopeToLanguageData = {
17171714
"source.ini",
17181715
"text.html.basic",
17191716
"source.css",
1717+
"source.tsx",
1718+
"source.yaml",
17201719
"text.html.markdown",
17211720
"source.js.jsx",
1722-
"source.applescript",
17231721
],
17241722
},
17251723
"source.mermaid": {

0 commit comments

Comments
 (0)