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