From 14e35e24916be1c3b6449af7cb52359f8582a7b7 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 22 Nov 2024 14:20:45 +0100 Subject: [PATCH] Add uiua codemirror support --- .../components/misc/CodeMirror/languageCompartment.ts | 4 ++++ package.json | 1 + yarn.lock | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/app/javascript/components/misc/CodeMirror/languageCompartment.ts b/app/javascript/components/misc/CodeMirror/languageCompartment.ts index 8634932cf6..f7d14ab06d 100644 --- a/app/javascript/components/misc/CodeMirror/languageCompartment.ts +++ b/app/javascript/components/misc/CodeMirror/languageCompartment.ts @@ -52,6 +52,10 @@ export const loadLanguageCompartment = async ( const { rust: reasonml } = await import('@codemirror/lang-rust') return compartment.of(reasonml()) } + case 'uiua': { + const { uiua } = await import('@exercism/codemirror-lang-uiua') + return compartment.of(uiua()) + } case 'wren': { const { wren } = await import('@exercism/codemirror-lang-wren') return compartment.of(wren()) diff --git a/package.json b/package.json index f592e19ab4..aa0a0c945f 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@exercism/active-background": "^0.6.2", "@exercism/codemirror-lang-arturo": "^0.1.6", "@exercism/codemirror-lang-gleam": "^2.0.1", + "@exercism/codemirror-lang-uiua": "^0.0.4", "@exercism/codemirror-lang-wren": "https://github.com/exercism/codemirror-lang-wren", "@exercism/highlightjs-arturo": "^0.0.2", "@exercism/highlightjs-gdscript": "^0.0.1", diff --git a/yarn.lock b/yarn.lock index 0474d2324e..ff788e132d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1509,6 +1509,15 @@ "@lezer/highlight" "^1.2.0" "@lezer/lr" "^1.4.0" +"@exercism/codemirror-lang-uiua@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@exercism/codemirror-lang-uiua/-/codemirror-lang-uiua-0.0.4.tgz#fba326cf48f405bbdee575d1f273d4747ed605e4" + integrity sha512-Dqc90pxIZjcv4+Xl8xr//7mQGeyyIDVNZAFCKmx3EafiSn3jpYNt+8/DqxA5O12wkTPfI7Kg3NNXZ1f8NxPRIw== + dependencies: + "@codemirror/language" "^6.10.1" + "@lezer/highlight" "^1.2.0" + "@lezer/lr" "^1.4.0" + "@exercism/codemirror-lang-wren@https://github.com/exercism/codemirror-lang-wren": version "1.0.0" resolved "https://github.com/exercism/codemirror-lang-wren#3bde9961a87f3e46ddb3e282f979f39295be626b"