Skip to content

Commit

Permalink
Add highlightjs support for Uiua
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Nov 19, 2024
1 parent fdd166d commit 9cb5b11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/utils/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import setupGDScript from '@exercism/highlightjs-gdscript'
import setupJq from 'highlightjs-jq'
import setupArturo from '@exercism/highlightjs-arturo'
import setupRoc from 'highlightjs-roc'
import setupUiua from '@exercism/highlightjs-uiua'

if (isLookbehindSupported()) {
highlighter.default.registerLanguage('abap', setupABAP)
Expand All @@ -27,6 +28,7 @@ if (isLookbehindSupported()) {
highlighter.default.registerLanguage('gdscript', setupGDScript)
highlighter.default.registerLanguage('jq', setupJq)
highlighter.default.registerLanguage('roc', setupRoc)
highlighter.default.registerLanguage('uiua', setupUiua)
}

highlighter.default.configure({
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@exercism/codemirror-lang-wren": "https://github.com/exercism/codemirror-lang-wren",
"@exercism/highlightjs-arturo": "^0.0.2",
"@exercism/highlightjs-gdscript": "^0.0.1",
"@exercism/highlightjs-uiua": "^0.0.1",
"@exercism/twine2-story-format": "https://github.com/exercism/twine2-story-format.git",
"@gleam-lang/highlight.js-gleam": "^1.0.0",
"@hotwired/turbo-rails": "^7.3.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,11 @@
resolved "https://registry.yarnpkg.com/@exercism/highlightjs-gdscript/-/highlightjs-gdscript-0.0.1.tgz#1b10f0b394d406f6f9309ad66eec801ee399e671"
integrity sha512-LiCFDhXCr3iIEGESHEsSCpCI7qNa2suHcrBWeOYSEtEwCXc+IQpEh5i4K8qPcOMJB9ckVOgLgbSNML8TyvPCVg==

"@exercism/highlightjs-uiua@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@exercism/highlightjs-uiua/-/highlightjs-uiua-0.0.1.tgz#03f99dbd79b535b31fdb925fd1d9070f71f59b58"
integrity sha512-szQP3nQdxpQZuQ/y1uogNv6wOcYQ+hPuFp3Tw0+6ygSWrM/yddS1K5BRHGHPXzDqm6jsTkPdzdryr8fVkXPhpQ==

"@exercism/twine2-story-format@https://github.com/exercism/twine2-story-format.git":
version "1.0.0"
resolved "https://github.com/exercism/twine2-story-format.git#94ac1ce6a2560f06db4172dd28707b98220b4fb9"
Expand Down

0 comments on commit 9cb5b11

Please sign in to comment.