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