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