]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/golo.js
Initial commit.
[flow-web.git] / static / highlight / languages / golo.js
1 /*! `golo` grammar compiled for Highlight.js 11.11.1 */
2 (function(){
3 var hljsGrammar = (function () {
4 'use strict';
5
6 /*
7 Language: Golo
8 Author: Philippe Charriere <ph.charriere@gmail.com>
9 Description: a lightweight dynamic language for the JVM
10 Website: http://golo-lang.org/
11 Category: system
12 */
13
14 function golo(hljs) {
15 const KEYWORDS = [
16 "println",
17 "readln",
18 "print",
19 "import",
20 "module",
21 "function",
22 "local",
23 "return",
24 "let",
25 "var",
26 "while",
27 "for",
28 "foreach",
29 "times",
30 "in",
31 "case",
32 "when",
33 "match",
34 "with",
35 "break",
36 "continue",
37 "augment",
38 "augmentation",
39 "each",
40 "find",
41 "filter",
42 "reduce",
43 "if",
44 "then",
45 "else",
46 "otherwise",
47 "try",
48 "catch",
49 "finally",
50 "raise",
51 "throw",
52 "orIfNull",
53 "DynamicObject|10",
54 "DynamicVariable",
55 "struct",
56 "Observable",
57 "map",
58 "set",
59 "vector",
60 "list",
61 "array"
62 ];
63
64 return {
65 name: 'Golo',
66 keywords: {
67 keyword: KEYWORDS,
68 literal: [
69 "true",
70 "false",
71 "null"
72 ]
73 },
74 contains: [
75 hljs.HASH_COMMENT_MODE,
76 hljs.QUOTE_STRING_MODE,
77 hljs.C_NUMBER_MODE,
78 {
79 className: 'meta',
80 begin: '@[A-Za-z]+'
81 }
82 ]
83 };
84 }
85
86 return golo;
87
88 })();
89
90 hljs.registerLanguage('golo', hljsGrammar);
91 })();