]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/clean.js
Initial commit.
[flow-web.git] / static / highlight / languages / clean.js
1 /*! `clean` grammar compiled for Highlight.js 11.11.1 */
2 (function(){
3 var hljsGrammar = (function () {
4 'use strict';
5
6 /*
7 Language: Clean
8 Author: Camil Staps <info@camilstaps.nl>
9 Category: functional
10 Website: http://clean.cs.ru.nl
11 */
12
13 /** @type LanguageFn */
14 function clean(hljs) {
15 const KEYWORDS = [
16 "if",
17 "let",
18 "in",
19 "with",
20 "where",
21 "case",
22 "of",
23 "class",
24 "instance",
25 "otherwise",
26 "implementation",
27 "definition",
28 "system",
29 "module",
30 "from",
31 "import",
32 "qualified",
33 "as",
34 "special",
35 "code",
36 "inline",
37 "foreign",
38 "export",
39 "ccall",
40 "stdcall",
41 "generic",
42 "derive",
43 "infix",
44 "infixl",
45 "infixr"
46 ];
47 return {
48 name: 'Clean',
49 aliases: [
50 'icl',
51 'dcl'
52 ],
53 keywords: {
54 keyword: KEYWORDS,
55 built_in:
56 'Int Real Char Bool',
57 literal:
58 'True False'
59 },
60 contains: [
61 hljs.C_LINE_COMMENT_MODE,
62 hljs.C_BLOCK_COMMENT_MODE,
63 hljs.APOS_STRING_MODE,
64 hljs.QUOTE_STRING_MODE,
65 hljs.C_NUMBER_MODE,
66 { // relevance booster
67 begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>' }
68 ]
69 };
70 }
71
72 return clean;
73
74 })();
75
76 hljs.registerLanguage('clean', hljsGrammar);
77 })();