You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/lib/modes.js

16 lines
387 B
JavaScript

import { LANGUAGES } from './constants'
const modes = LANGUAGES.filter(
language =>
language.mode &&
language.mode !== 'auto' &&
language.mode !== 'text' &&
language.mode !== 'javascript'
).forEach(language =>
language.custom
? require(`./custom/modes/${language.mode}`)
: require(`codemirror/mode/${language.mode}/${language.mode}`)
)
export default modes