]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/gradle.js
Initial commit.
[flow-web.git] / static / highlight / languages / gradle.js
1 /*! `gradle` grammar compiled for Highlight.js 11.11.1 */
2 (function(){
3 var hljsGrammar = (function () {
4 'use strict';
5
6 /*
7 Language: Gradle
8 Description: Gradle is an open-source build automation tool focused on flexibility and performance.
9 Website: https://gradle.org
10 Author: Damian Mee <mee.damian@gmail.com>
11 Category: build-system
12 */
13
14 function gradle(hljs) {
15 const KEYWORDS = [
16 "task",
17 "project",
18 "allprojects",
19 "subprojects",
20 "artifacts",
21 "buildscript",
22 "configurations",
23 "dependencies",
24 "repositories",
25 "sourceSets",
26 "description",
27 "delete",
28 "from",
29 "into",
30 "include",
31 "exclude",
32 "source",
33 "classpath",
34 "destinationDir",
35 "includes",
36 "options",
37 "sourceCompatibility",
38 "targetCompatibility",
39 "group",
40 "flatDir",
41 "doLast",
42 "doFirst",
43 "flatten",
44 "todir",
45 "fromdir",
46 "ant",
47 "def",
48 "abstract",
49 "break",
50 "case",
51 "catch",
52 "continue",
53 "default",
54 "do",
55 "else",
56 "extends",
57 "final",
58 "finally",
59 "for",
60 "if",
61 "implements",
62 "instanceof",
63 "native",
64 "new",
65 "private",
66 "protected",
67 "public",
68 "return",
69 "static",
70 "switch",
71 "synchronized",
72 "throw",
73 "throws",
74 "transient",
75 "try",
76 "volatile",
77 "while",
78 "strictfp",
79 "package",
80 "import",
81 "false",
82 "null",
83 "super",
84 "this",
85 "true",
86 "antlrtask",
87 "checkstyle",
88 "codenarc",
89 "copy",
90 "boolean",
91 "byte",
92 "char",
93 "class",
94 "double",
95 "float",
96 "int",
97 "interface",
98 "long",
99 "short",
100 "void",
101 "compile",
102 "runTime",
103 "file",
104 "fileTree",
105 "abs",
106 "any",
107 "append",
108 "asList",
109 "asWritable",
110 "call",
111 "collect",
112 "compareTo",
113 "count",
114 "div",
115 "dump",
116 "each",
117 "eachByte",
118 "eachFile",
119 "eachLine",
120 "every",
121 "find",
122 "findAll",
123 "flatten",
124 "getAt",
125 "getErr",
126 "getIn",
127 "getOut",
128 "getText",
129 "grep",
130 "immutable",
131 "inject",
132 "inspect",
133 "intersect",
134 "invokeMethods",
135 "isCase",
136 "join",
137 "leftShift",
138 "minus",
139 "multiply",
140 "newInputStream",
141 "newOutputStream",
142 "newPrintWriter",
143 "newReader",
144 "newWriter",
145 "next",
146 "plus",
147 "pop",
148 "power",
149 "previous",
150 "print",
151 "println",
152 "push",
153 "putAt",
154 "read",
155 "readBytes",
156 "readLines",
157 "reverse",
158 "reverseEach",
159 "round",
160 "size",
161 "sort",
162 "splitEachLine",
163 "step",
164 "subMap",
165 "times",
166 "toInteger",
167 "toList",
168 "tokenize",
169 "upto",
170 "waitForOrKill",
171 "withPrintWriter",
172 "withReader",
173 "withStream",
174 "withWriter",
175 "withWriterAppend",
176 "write",
177 "writeLine"
178 ];
179 return {
180 name: 'Gradle',
181 case_insensitive: true,
182 keywords: KEYWORDS,
183 contains: [
184 hljs.C_LINE_COMMENT_MODE,
185 hljs.C_BLOCK_COMMENT_MODE,
186 hljs.APOS_STRING_MODE,
187 hljs.QUOTE_STRING_MODE,
188 hljs.NUMBER_MODE,
189 hljs.REGEXP_MODE
190
191 ]
192 };
193 }
194
195 return gradle;
196
197 })();
198
199 hljs.registerLanguage('gradle', hljsGrammar);
200 })();