@surrealdb/ui 1.2.15 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.js +19 -2
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
- package/release-notes.md +39 -0
- package/tests/unit/Syntax/language.test.ts +63 -0
package/dist/ui.js
CHANGED
|
@@ -7860,8 +7860,25 @@ function TO(O) {
|
|
|
7860
7860
|
const $n = /* @__PURE__ */ new Map([
|
|
7861
7861
|
["csharp", { name: "C#", lang: Jr.define(Id), aliases: ["cs"] }],
|
|
7862
7862
|
["rust", { name: "Rust", lang: TO(Qm), aliases: ["rs"] }],
|
|
7863
|
-
|
|
7864
|
-
|
|
7863
|
+
// The Lezer JavaScript grammar gates JSX and TypeScript syntax behind
|
|
7864
|
+
// opt-in dialects. Without them, type annotations and JSX elements parse
|
|
7865
|
+
// as errors and lose their highlighting.
|
|
7866
|
+
[
|
|
7867
|
+
"javascript",
|
|
7868
|
+
{
|
|
7869
|
+
name: "JavaScript",
|
|
7870
|
+
lang: TO(pr.configure({ dialect: "jsx" })),
|
|
7871
|
+
aliases: ["js", "jsx"]
|
|
7872
|
+
}
|
|
7873
|
+
],
|
|
7874
|
+
[
|
|
7875
|
+
"typescript",
|
|
7876
|
+
{
|
|
7877
|
+
name: "TypeScript",
|
|
7878
|
+
lang: TO(pr.configure({ dialect: "jsx ts" })),
|
|
7879
|
+
aliases: ["ts", "tsx"]
|
|
7880
|
+
}
|
|
7881
|
+
],
|
|
7865
7882
|
["json", { name: "JSON", lang: TO(Wl), aliases: [] }],
|
|
7866
7883
|
["yaml", { name: "YAML", lang: TO(Gm), aliases: [] }],
|
|
7867
7884
|
["java", { name: "Java", lang: Jr.define(Ld), aliases: [] }],
|