mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
feat:1、修复无数据时报错的问题。
2、新增自定义代码着色格式 3、新增自动加载配置文件
This commit is contained in:
31
static/editor.md/lib/highlight/languages/clean.js
Normal file
31
static/editor.md/lib/highlight/languages/clean.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
Language: Clean
|
||||
Author: Camil Staps <info@camilstaps.nl>
|
||||
Category: functional
|
||||
Website: http://clean.cs.ru.nl
|
||||
*/
|
||||
|
||||
function(hljs) {
|
||||
return {
|
||||
aliases: ['clean','icl','dcl'],
|
||||
keywords: {
|
||||
keyword:
|
||||
'if let in with where case of class instance otherwise ' +
|
||||
'implementation definition system module from import qualified as ' +
|
||||
'special code inline foreign export ccall stdcall generic derive ' +
|
||||
'infix infixl infixr',
|
||||
literal:
|
||||
'True False'
|
||||
},
|
||||
contains: [
|
||||
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.C_NUMBER_MODE,
|
||||
|
||||
{begin: '->|<-[|:]?|::|#!?|>>=|\\{\\||\\|\\}|:==|=:|\\.\\.|<>|`'} // relevance booster
|
||||
]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user