File size: 597 Bytes
87a665c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { LanguageDescription } from '@codemirror/language';
import { languages } from '@codemirror/language-data';

const octaveLang = languages.find((l) => l.name === 'Octave');
if (octaveLang) {
	(octaveLang.alias as string[]).push('matlab');
}

languages.push(
	LanguageDescription.of({
		name: 'HCL',
		extensions: ['hcl', 'tf'],
		load() {
			return import('codemirror-lang-hcl').then((m) => m.hcl());
		}
	})
);
languages.push(
	LanguageDescription.of({
		name: 'Elixir',
		extensions: ['ex', 'exs'],
		load() {
			return import('codemirror-lang-elixir').then((m) => m.elixir());
		}
	})
);