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 5555 "@codemirror/view" : " ^6.26.3" ,
5656 "@prettier/plugin-php" : " 0.22.2" ,
5757 "@prettier/plugin-xml" : " 2.2.0" ,
58+ "@replit/codemirror-lang-solidity" : " 6.0.2" ,
5859 "@types/prettier" : " ^2.7.2" ,
5960 "material-icon-theme" : " ^5.1.0" ,
6061 "prettier" : " ^2.8.8" ,
Original file line number Diff line number Diff line change @@ -789,4 +789,19 @@ export const SUPPORTED_LANGUAGES: readonly LanguageDefinition[] = [
789789 } ,
790790 ] ,
791791 } ,
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+ } ,
792807] ;
You can’t perform that action at this time.
0 commit comments