Skip to content

Commit 8da4334

Browse files
committed
feat (language): 添加 Kotlin 相关资源
1 parent 356a3a6 commit 8da4334

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ CodeForge 是一款轻量级、高性能的桌面代码执行器,专为开发
2424

2525
- **Go**
2626
- **Java**
27+
- **Kotlin**
2728
- **Node.js**
2829
- **Python 2**
2930
- **Python 3**
3031
- **Rust**
3132
- **Shell**
3233
- **Swift**
33-
- **...更多语言敬请期待**
3434

3535
## 安装
3636

public/icons/kotlin.svg

Lines changed: 10 additions & 0 deletions
Loading

src/composables/useCodeMirrorEditor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { rust } from '@codemirror/lang-rust'
77
import { shell } from '@codemirror/legacy-modes/mode/shell'
88
import { swift } from '@codemirror/legacy-modes/mode/swift'
99
import { scala } from '@codemirror/legacy-modes/mode/clike'
10+
import { kotlin } from '@codemirror/legacy-modes/mode/clike'
1011
import {
1112
abcdef,
1213
abyss,
@@ -166,6 +167,8 @@ export function useCodeMirrorEditor(props: Props)
166167
return StreamLanguage.define(swift)
167168
case 'scala':
168169
return StreamLanguage.define(scala)
170+
case 'kotlin':
171+
return StreamLanguage.define(kotlin)
169172
default:
170173
return null
171174
}

0 commit comments

Comments
 (0)