Skip to content

Commit

Permalink
Add highlightjs support for Uiua (#7161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Nov 21, 2024
1 parent a81de57 commit 5b89b96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = {
'^.+\\.[t|j]sx?$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(highlightjs-(bqn|zig|chapel|jq|roc)|@ballerina/highlightjs-ballerina|@exercism/highlightjs-arturo)/)',
'node_modules/(?!(highlightjs-(bqn|zig|chapel|jq|roc)|@ballerina/highlightjs-ballerina|@exercism/highlightjs-(arturo|uiua))/)',
],
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.svg$':
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.4",
"@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.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@exercism/highlightjs-uiua/-/highlightjs-uiua-0.0.4.tgz#82799b3a47345596d85fc1ebbb193308db068202"
integrity sha512-fyKgDFLHA1x2yJmu/xC0FIVWyFkzdUwvKmX1Ll0N6PxJ/AaR0beZkuZM2Powj6z01bOHQmrl84AKHZtdqiu/gQ==

"@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 5b89b96

Please sign in to comment.