Skip to content

Commit d0d069f

Browse files
675: add support for solidity language (#676)
* feat: add solidity language * docs(changeset): Add support for solidity language
1 parent 83d3875 commit d0d069f

File tree

4 files changed

+175
-123
lines changed

4 files changed

+175
-123
lines changed

.changeset/loud-jobs-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeimage/config': patch
3+
---
4+
5+
Add support for solidity language

packages/config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
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",

packages/config/src/lib/base/languages.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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: /^.*\.(sol)$/,
804+
},
805+
],
806+
},
792807
];

0 commit comments

Comments
 (0)