File tree Expand file tree Collapse file tree 4 files changed +175
-123
lines changed Expand file tree Collapse file tree 4 files changed +175
-123
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @codeimage/config ' : patch
3
+ ---
4
+
5
+ Add support for solidity language
Original file line number Diff line number Diff line change 55
55
"@codemirror/view" : " ^6.26.3" ,
56
56
"@prettier/plugin-php" : " 0.22.2" ,
57
57
"@prettier/plugin-xml" : " 2.2.0" ,
58
+ "@replit/codemirror-lang-solidity" : " 6.0.2" ,
58
59
"@types/prettier" : " ^2.7.2" ,
59
60
"material-icon-theme" : " ^5.1.0" ,
60
61
"prettier" : " ^2.8.8" ,
Original file line number Diff line number Diff line change @@ -789,4 +789,19 @@ export const SUPPORTED_LANGUAGES: readonly LanguageDefinition[] = [
789
789
} ,
790
790
] ,
791
791
} ,
792
+ {
793
+ id : 'solidity' ,
794
+ label : 'Solidity' ,
795
+ color : '#AA6746' ,
796
+ plugin : ( ) =>
797
+ import ( '@replit/codemirror-lang-solidity' ) . then ( ( { solidity} ) => solidity ) ,
798
+ icons : [
799
+ {
800
+ name : 'Solidity' ,
801
+ extension : '.sol' ,
802
+ content : ( ) => import ( 'material-icon-theme/icons/solidity.svg?raw' ) ,
803
+ matcher : / ^ .* \. ( s o l ) $ / ,
804
+ } ,
805
+ ] ,
806
+ } ,
792
807
] ;
You can’t perform that action at this time.
0 commit comments