@@ -4,7 +4,10 @@ import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
44import { javascript } from '@codemirror/lang-javascript' ;
55import { html } from '@codemirror/lang-html' ;
66import { css } from '@codemirror/lang-css' ;
7+ import { less } from '@codemirror/lang-less' ;
8+ import { sass } from '@codemirror/lang-sass' ;
79import { json } from '@codemirror/lang-json' ;
10+ import { mermaid } from 'codemirror-lang-mermaid' ;
811import { python } from '@codemirror/lang-python' ;
912import { xml } from '@codemirror/lang-xml' ;
1013import { sql , MySQL , PostgreSQL } from '@codemirror/lang-sql' ;
@@ -14,6 +17,12 @@ import { cpp } from '@codemirror/lang-cpp';
1417import { lezer } from '@codemirror/lang-lezer' ;
1518import { php } from '@codemirror/lang-php' ;
1619import { 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' ;
1726
1827import { apl } from '@codemirror/legacy-modes/mode/apl' ;
1928import { asciiArmor } from '@codemirror/legacy-modes/mode/asciiarmor' ;
@@ -23,7 +32,6 @@ import { brainfuck } from '@codemirror/legacy-modes/mode/brainfuck';
2332import {
2433 clike ,
2534 c ,
26- csharp ,
2735 scala ,
2836 kotlin ,
2937 shader ,
@@ -34,8 +42,7 @@ import {
3442 ceylon ,
3543 dart ,
3644} 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' ;
3946import { cmake } from '@codemirror/legacy-modes/mode/cmake' ;
4047import { cobol } from '@codemirror/legacy-modes/mode/cobol' ;
4148import { coffeeScript } from '@codemirror/legacy-modes/mode/coffeescript' ;
@@ -92,7 +99,6 @@ import { r } from '@codemirror/legacy-modes/mode/r';
9299// import { rpm } from '@codemirror/legacy-modes/mode/rpm';
93100import { ruby } from '@codemirror/legacy-modes/mode/ruby' ;
94101import { sas } from '@codemirror/legacy-modes/mode/sas' ;
95- import { sass } from '@codemirror/legacy-modes/mode/sass' ;
96102import { scheme } from '@codemirror/legacy-modes/mode/scheme' ;
97103import { shell } from '@codemirror/legacy-modes/mode/shell' ;
98104import { sieve } from '@codemirror/legacy-modes/mode/sieve' ;
@@ -131,8 +137,9 @@ export const langs = {
131137 asterisk : ( ) => StreamLanguage . define ( asterisk ) ,
132138 // clike: () => StreamLanguage.define(clike),
133139 c : ( ) => StreamLanguage . define ( c ) ,
134- csharp : ( ) => StreamLanguage . define ( csharp ) ,
140+ csharp : ( ) => csharp ( ) ,
135141 scala : ( ) => StreamLanguage . define ( scala ) ,
142+ solidity : ( ) => solidity ,
136143 kotlin : ( ) => StreamLanguage . define ( kotlin ) ,
137144 shader : ( ) => StreamLanguage . define ( shader ) ,
138145 nesC : ( ) => StreamLanguage . define ( nesC ) ,
@@ -182,7 +189,10 @@ export const langs = {
182189 puppet : ( ) => StreamLanguage . define ( puppet ) ,
183190 q : ( ) => StreamLanguage . define ( q ) ,
184191 sas : ( ) => StreamLanguage . define ( sas ) ,
185- sass : ( ) => StreamLanguage . define ( sass ) ,
192+ sass : ( ) => sass ( ) ,
193+ mermaid : ( ) => mermaid ( ) ,
194+ nix : ( ) => nix ( ) ,
195+ svelte : ( ) => svelte ( ) ,
186196 sieve : ( ) => StreamLanguage . define ( sieve ) ,
187197 smalltalk : ( ) => StreamLanguage . define ( smalltalk ) ,
188198 solr : ( ) => StreamLanguage . define ( solr ) ,
@@ -208,6 +218,8 @@ export const langs = {
208218 jsx : ( ) => javascript ( { jsx : true } ) ,
209219 typescript : ( ) => javascript ( { typescript : true } ) ,
210220 tsx : ( ) => javascript ( { jsx : true , typescript : true } ) ,
221+ vue : ( ) => vue ( ) ,
222+ angular : ( ) => angular ( ) ,
211223 json,
212224 html,
213225 css,
@@ -240,11 +252,11 @@ export const langs = {
240252 ruby : ( ) => StreamLanguage . define ( ruby ) ,
241253 pascal : ( ) => StreamLanguage . define ( pascal ) ,
242254 livescript : ( ) => StreamLanguage . define ( liveScript ) ,
243- less : ( ) => StreamLanguage . define ( less ) ,
255+ less : ( ) => less ( ) ,
244256 scheme : ( ) => StreamLanguage . define ( scheme ) ,
245257 toml : ( ) => StreamLanguage . define ( toml ) ,
246258 vbscript : ( ) => StreamLanguage . define ( vbScript ) ,
247- clojure : ( ) => StreamLanguage . define ( clojure ) ,
259+ clojure : ( ) => clojure ( ) ,
248260 coffeescript : ( ) => StreamLanguage . define ( coffeeScript ) ,
249261 julia : ( ) => StreamLanguage . define ( julia ) ,
250262 dockerfile : ( ) => StreamLanguage . define ( dockerFile ) ,
0 commit comments