import custom modules

main
briandennis 7 years ago committed by Brian Dennis
parent fecf754495
commit 878e9e4f2e

@ -192,7 +192,8 @@ export const LANGUAGES = [
},
{
name: 'Nim',
module: 'nim'
module: 'nimrod',
custom: true
},
{
name: 'Pascal',
@ -292,7 +293,9 @@ const unfold = (f, seed) => {
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
LANGUAGES.forEach((language) => {
if (language.module) {
require(`codemirror/mode/${language.module}/${language.module}`)
!language.custom
? require(`codemirror/mode/${language.module}/${language.module}`)
: require(`./customModes/${language.module}`)
}
})
}

Loading…
Cancel
Save