Merge pull request #581 from mark-when/vue

Feat: add vue support for codemirror
This commit is contained in:
Anirban Kar
2024-12-08 22:57:34 +05:30
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,13 @@
import { LanguageDescription } from '@codemirror/language';
export const supportedLanguages = [
LanguageDescription.of({
name: 'VUE',
extensions: ['vue'],
async load() {
return import('@codemirror/lang-vue').then((module) => module.vue());
},
}),
LanguageDescription.of({
name: 'TS',
extensions: ['ts'],