@@ -21,6 +21,8 @@ const getPath = (mod: string) => codeMirrorBaseUrl + mod;
2121
2222const moduleUrls = {
2323 vue : getPath ( 'codemirror-lang-vue.js' ) ,
24+ svelte : getPath ( 'codemirror-lang-svelte.js' ) ,
25+ liquid : getPath ( 'codemirror-lang-liquid.js' ) ,
2426 json : getPath ( 'codemirror-lang-json.js' ) ,
2527 markdown : getPath ( 'codemirror-lang-markdown.js' ) ,
2628 python : getPath ( 'codemirror-lang-python.js' ) ,
@@ -55,9 +57,12 @@ export const editorLanguages: Partial<{ [key in Language]: () => Promise<Languag
5557 tsx : async ( ) => javascript ( { jsx : true , typescript : true } ) ,
5658 json : async ( ) => json ( ) ,
5759 vue : async ( ) => ( await import ( moduleUrls . vue ) ) . vue ( ) ,
60+ svelte : async ( ) => ( await import ( moduleUrls . svelte ) ) . svelte ( ) ,
61+ liquid : async ( ) => ( await import ( moduleUrls . liquid ) ) . liquid ( ) ,
5862 markdown : async ( ) => ( await import ( moduleUrls . markdown ) ) . markdown ( ) ,
5963 python : async ( ) => ( await import ( moduleUrls . python ) ) . python ( ) ,
6064 php : async ( ) => ( await import ( moduleUrls . php ) ) . php ( ) ,
65+ go : async ( ) => ( await import ( moduleUrls . go ) ) . go ( ) ,
6166 cpp : async ( ) => ( await import ( moduleUrls . cpp ) ) . cpp ( ) ,
6267 sql : async ( ) => ( await import ( moduleUrls . sql ) ) . sql ( ) ,
6368 wat : async ( ) => ( await import ( moduleUrls . wast ) ) . wast ( ) ,
@@ -66,7 +71,6 @@ export const editorLanguages: Partial<{ [key in Language]: () => Promise<Languag
6671 coffeescript : async ( ) => legacy ( ( await import ( moduleUrls . coffeescript ) ) . coffeeScript ) ,
6772 livescript : async ( ) => legacy ( ( await import ( moduleUrls . livescript ) ) . liveScript ) ,
6873 ruby : async ( ) => legacy ( ( await import ( moduleUrls . ruby ) ) . ruby ) ,
69- go : async ( ) => legacy ( ( await import ( moduleUrls . go ) ) . go ) ,
7074 perl : async ( ) => legacy ( ( await import ( moduleUrls . perl ) ) . perl ) ,
7175 lua : async ( ) => legacy ( ( await import ( moduleUrls . lua ) ) . lua ) ,
7276 r : async ( ) => legacy ( ( await import ( moduleUrls . r ) ) . r ) ,
0 commit comments