Skip to content

Commit

Permalink
feat: add Vue language to CodeMirror (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 authored Aug 18, 2024
1 parent 3b480db commit f9b265f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/lang-sass": "^6.0.2",
"@codemirror/lang-vue": "^0.1.3",
"@codemirror/lang-wast": "^6.0.2",
"@codemirror/language": "^6.10.2",
"@codemirror/state": "^6.4.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ export const supportedLanguages = [
return import('@codemirror/lang-wast').then((module) => module.wast());
},
}),
LanguageDescription.of({
name: 'Vue',
extensions: ['vue'],
async load() {
return import('@codemirror/lang-vue').then((module) => module.vue());
},
}),
LanguageDescription.of({
name: 'Svelte',
extensions: ['svelte'],
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f9b265f

Please sign in to comment.