Skip to content

Commit 3eab0f4

Browse files
committed
feat (language): 添加 Haskell 语言相关资源
1 parent adafb30 commit 3eab0f4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CodeForge 是一款轻量级、高性能的桌面代码执行器,专为开发
3030
<img src="public/icons/css.svg" width="60" alt="CSS">
3131
<img src="public/icons/go.svg" width="60" alt="Go">
3232
<img src="public/icons/groovy.svg" width="60" alt="Groovy">
33+
<img src="public/icons/haskell.svg" width="60" alt="Haskell">
3334
<img src="public/icons/html.svg" width="60" alt="HTML">
3435
<img src="public/icons/java.svg" width="60" alt="Java">
3536
<img src="public/icons/javascript-browser.svg" width="60" alt="JavaScript (Browser)">

public/icons/haskell.svg

Lines changed: 5 additions & 0 deletions
Loading

src/composables/useCodeMirrorEditor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {clojure} from '@codemirror/legacy-modes/mode/clojure'
1616
import {ruby} from '@codemirror/legacy-modes/mode/ruby'
1717
import {groovy} from '@codemirror/legacy-modes/mode/groovy'
1818
import {r} from "@codemirror/legacy-modes/mode/r"
19+
import {haskell} from "@codemirror/legacy-modes/mode/haskell"
1920
import {
2021
abcdef,
2122
abyss,
@@ -213,6 +214,8 @@ export function useCodeMirrorEditor(props: Props)
213214
return php()
214215
case 'r':
215216
return StreamLanguage.define(r)
217+
case 'haskell':
218+
return StreamLanguage.define(haskell)
216219
default:
217220
return null
218221
}

0 commit comments

Comments
 (0)