mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 09:13:43 +08:00
aee7ef0dc9
Highlight.js changed their default branch from master to main. This switches to the @highlightjs/cdn-assets package, thus sidestepping the problem. It's a slightly cleaner integration though (no need to build locally anymore).
6 lines
555 B
JavaScript
6 lines
555 B
JavaScript
hljs.registerLanguage("clean",(()=>{"use strict";return e=>({name:"Clean",
|
|
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",
|
|
built_in:"Int Real Char Bool",literal:"True False"},
|
|
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{
|
|
begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]})})()); |