@@ -4,7 +4,10 @@ import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
4
4
import { javascript } from '@codemirror/lang-javascript' ;
5
5
import { html } from '@codemirror/lang-html' ;
6
6
import { css } from '@codemirror/lang-css' ;
7
+ import { less } from '@codemirror/lang-less' ;
8
+ import { sass } from '@codemirror/lang-sass' ;
7
9
import { json } from '@codemirror/lang-json' ;
10
+ import { mermaid } from 'codemirror-lang-mermaid' ;
8
11
import { python } from '@codemirror/lang-python' ;
9
12
import { xml } from '@codemirror/lang-xml' ;
10
13
import { sql , MySQL , PostgreSQL } from '@codemirror/lang-sql' ;
@@ -14,6 +17,12 @@ import { cpp } from '@codemirror/lang-cpp';
14
17
import { lezer } from '@codemirror/lang-lezer' ;
15
18
import { php } from '@codemirror/lang-php' ;
16
19
import { wast } from '@codemirror/lang-wast' ;
20
+ import { vue } from '@codemirror/lang-vue' ;
21
+ import { angular } from '@codemirror/lang-angular' ;
22
+ import { nix } from '@replit/codemirror-lang-nix' ;
23
+ import { svelte } from '@replit/codemirror-lang-svelte' ;
24
+ import { csharp } from '@replit/codemirror-lang-csharp' ;
25
+ import { solidity } from '@replit/codemirror-lang-solidity' ;
17
26
18
27
import { apl } from '@codemirror/legacy-modes/mode/apl' ;
19
28
import { asciiArmor } from '@codemirror/legacy-modes/mode/asciiarmor' ;
@@ -23,7 +32,6 @@ import { brainfuck } from '@codemirror/legacy-modes/mode/brainfuck';
23
32
import {
24
33
clike ,
25
34
c ,
26
- csharp ,
27
35
scala ,
28
36
kotlin ,
29
37
shader ,
@@ -34,8 +42,7 @@ import {
34
42
ceylon ,
35
43
dart ,
36
44
} from '@codemirror/legacy-modes/mode/clike' ;
37
- import { clojure } from '@codemirror/legacy-modes/mode/clojure' ;
38
- import { less } from '@codemirror/legacy-modes/mode/css' ;
45
+ import { clojure } from '@nextjournal/lang-clojure' ;
39
46
import { cmake } from '@codemirror/legacy-modes/mode/cmake' ;
40
47
import { cobol } from '@codemirror/legacy-modes/mode/cobol' ;
41
48
import { coffeeScript } from '@codemirror/legacy-modes/mode/coffeescript' ;
@@ -92,7 +99,6 @@ import { r } from '@codemirror/legacy-modes/mode/r';
92
99
// import { rpm } from '@codemirror/legacy-modes/mode/rpm';
93
100
import { ruby } from '@codemirror/legacy-modes/mode/ruby' ;
94
101
import { sas } from '@codemirror/legacy-modes/mode/sas' ;
95
- import { sass } from '@codemirror/legacy-modes/mode/sass' ;
96
102
import { scheme } from '@codemirror/legacy-modes/mode/scheme' ;
97
103
import { shell } from '@codemirror/legacy-modes/mode/shell' ;
98
104
import { sieve } from '@codemirror/legacy-modes/mode/sieve' ;
@@ -131,8 +137,9 @@ export const langs = {
131
137
asterisk : ( ) => StreamLanguage . define ( asterisk ) ,
132
138
// clike: () => StreamLanguage.define(clike),
133
139
c : ( ) => StreamLanguage . define ( c ) ,
134
- csharp : ( ) => StreamLanguage . define ( csharp ) ,
140
+ csharp : ( ) => csharp ( ) ,
135
141
scala : ( ) => StreamLanguage . define ( scala ) ,
142
+ solidity : ( ) => solidity ,
136
143
kotlin : ( ) => StreamLanguage . define ( kotlin ) ,
137
144
shader : ( ) => StreamLanguage . define ( shader ) ,
138
145
nesC : ( ) => StreamLanguage . define ( nesC ) ,
@@ -182,7 +189,10 @@ export const langs = {
182
189
puppet : ( ) => StreamLanguage . define ( puppet ) ,
183
190
q : ( ) => StreamLanguage . define ( q ) ,
184
191
sas : ( ) => StreamLanguage . define ( sas ) ,
185
- sass : ( ) => StreamLanguage . define ( sass ) ,
192
+ sass : ( ) => sass ( ) ,
193
+ mermaid : ( ) => mermaid ( ) ,
194
+ nix : ( ) => nix ( ) ,
195
+ svelte : ( ) => svelte ( ) ,
186
196
sieve : ( ) => StreamLanguage . define ( sieve ) ,
187
197
smalltalk : ( ) => StreamLanguage . define ( smalltalk ) ,
188
198
solr : ( ) => StreamLanguage . define ( solr ) ,
@@ -208,6 +218,8 @@ export const langs = {
208
218
jsx : ( ) => javascript ( { jsx : true } ) ,
209
219
typescript : ( ) => javascript ( { typescript : true } ) ,
210
220
tsx : ( ) => javascript ( { jsx : true , typescript : true } ) ,
221
+ vue : ( ) => vue ( ) ,
222
+ angular : ( ) => angular ( ) ,
211
223
json,
212
224
html,
213
225
css,
@@ -240,11 +252,11 @@ export const langs = {
240
252
ruby : ( ) => StreamLanguage . define ( ruby ) ,
241
253
pascal : ( ) => StreamLanguage . define ( pascal ) ,
242
254
livescript : ( ) => StreamLanguage . define ( liveScript ) ,
243
- less : ( ) => StreamLanguage . define ( less ) ,
255
+ less : ( ) => less ( ) ,
244
256
scheme : ( ) => StreamLanguage . define ( scheme ) ,
245
257
toml : ( ) => StreamLanguage . define ( toml ) ,
246
258
vbscript : ( ) => StreamLanguage . define ( vbScript ) ,
247
- clojure : ( ) => StreamLanguage . define ( clojure ) ,
259
+ clojure : ( ) => clojure ( ) ,
248
260
coffeescript : ( ) => StreamLanguage . define ( coffeeScript ) ,
249
261
julia : ( ) => StreamLanguage . define ( julia ) ,
250
262
dockerfile : ( ) => StreamLanguage . define ( dockerFile ) ,
0 commit comments