corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2 "use strict";
3  
4 var oop = require("../lib/oop");
5 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6  
7 var DocCommentHighlightRules = function() {
8 this.$rules = {
9 "start" : [ {
10 token : "comment.doc.tag",
11 regex : "@[\\w\\d_]+" // TODO: fix email addresses
12 },
13 DocCommentHighlightRules.getTagRule(),
14 {
15 defaultToken : "comment.doc",
16 caseInsensitive: true
17 }]
18 };
19 };
20  
21 oop.inherits(DocCommentHighlightRules, TextHighlightRules);
22  
23 DocCommentHighlightRules.getTagRule = function(start) {
24 return {
25 token : "comment.doc.tag.storage.type",
26 regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27 };
28 }
29  
30 DocCommentHighlightRules.getStartRule = function(start) {
31 return {
32 token : "comment.doc", // doc comment
33 regex : "\\/\\*(?=\\*)",
34 next : start
35 };
36 };
37  
38 DocCommentHighlightRules.getEndRule = function (start) {
39 return {
40 token : "comment.doc", // closing comment
41 regex : "\\*\\/",
42 next : start
43 };
44 };
45  
46  
47 exports.DocCommentHighlightRules = DocCommentHighlightRules;
48  
49 });
50  
51 ace.define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
52 "use strict";
53  
54 var oop = require("../lib/oop");
55 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
56  
57 var PerlHighlightRules = function() {
58  
59 var keywords = (
60 "base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
61 "no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars"
62 );
63  
64 var buildinConstants = ("ARGV|ENV|INC|SIG");
65  
66 var builtinFunctions = (
67 "getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
68 "gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
69 "getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
70 "endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
71 "getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
72 "localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
73 "closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
74 "shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
75 "dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
76 "setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
77 "lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
78 "waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
79 "chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
80 "unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
81 "length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
82 "undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
83 "sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
84 "BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
85 "join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
86 "keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
87 "eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
88 "map|die|uc|lc|do"
89 );
90  
91 var keywordMapper = this.createKeywordMapper({
92 "keyword": keywords,
93 "constant.language": buildinConstants,
94 "support.function": builtinFunctions
95 }, "identifier");
96  
97 this.$rules = {
98 "start" : [
99 {
100 token : "comment.doc",
101 regex : "^=(?:begin|item)\\b",
102 next : "block_comment"
103 }, {
104 token : "string.regexp",
105 regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
106 }, {
107 token : "string", // single line
108 regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
109 }, {
110 token : "string", // multi line string start
111 regex : '["].*\\\\$',
112 next : "qqstring"
113 }, {
114 token : "string", // single line
115 regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
116 }, {
117 token : "string", // multi line string start
118 regex : "['].*\\\\$",
119 next : "qstring"
120 }, {
121 token : "constant.numeric", // hex
122 regex : "0x[0-9a-fA-F]+\\b"
123 }, {
124 token : "constant.numeric", // float
125 regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
126 }, {
127 token : keywordMapper,
128 regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
129 }, {
130 token : "keyword.operator",
131 regex : "%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
132 }, {
133 token : "comment",
134 regex : "#.*$"
135 }, {
136 token : "lparen",
137 regex : "[[({]"
138 }, {
139 token : "rparen",
140 regex : "[\\])}]"
141 }, {
142 token : "text",
143 regex : "\\s+"
144 }
145 ],
146 "qqstring" : [
147 {
148 token : "string",
149 regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
150 next : "start"
151 }, {
152 token : "string",
153 regex : '.+'
154 }
155 ],
156 "qstring" : [
157 {
158 token : "string",
159 regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
160 next : "start"
161 }, {
162 token : "string",
163 regex : '.+'
164 }
165 ],
166 "block_comment": [
167 {
168 token: "comment.doc",
169 regex: "^=cut\\b",
170 next: "start"
171 },
172 {
173 defaultToken: "comment.doc"
174 }
175 ]
176 };
177 };
178  
179 oop.inherits(PerlHighlightRules, TextHighlightRules);
180  
181 exports.PerlHighlightRules = PerlHighlightRules;
182 });
183  
184 ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
185 "use strict";
186  
187 var oop = require("../lib/oop");
188 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
189  
190 var PythonHighlightRules = function() {
191  
192 var keywords = (
193 "and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
194 "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
195 "raise|return|try|while|with|yield"
196 );
197  
198 var builtinConstants = (
199 "True|False|None|NotImplemented|Ellipsis|__debug__"
200 );
201  
202 var builtinFunctions = (
203 "abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
204 "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
205 "binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
206 "float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
207 "chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|" +
208 "cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
209 "__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
210 "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern"
211 );
212 var keywordMapper = this.createKeywordMapper({
213 "invalid.deprecated": "debugger",
214 "support.function": builtinFunctions,
215 "constant.language": builtinConstants,
216 "keyword": keywords
217 }, "identifier");
218  
219 var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
220  
221 var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
222 var octInteger = "(?:0[oO]?[0-7]+)";
223 var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
224 var binInteger = "(?:0[bB][01]+)";
225 var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
226  
227 var exponent = "(?:[eE][+-]?\\d+)";
228 var fraction = "(?:\\.\\d+)";
229 var intPart = "(?:\\d+)";
230 var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
231 var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
232 var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
233  
234 var stringEscape = "\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";
235  
236 this.$rules = {
237 "start" : [ {
238 token : "comment",
239 regex : "#.*$"
240 }, {
241 token : "string", // multi line """ string start
242 regex : strPre + '"{3}',
243 next : "qqstring3"
244 }, {
245 token : "string", // " string
246 regex : strPre + '"(?=.)',
247 next : "qqstring"
248 }, {
249 token : "string", // multi line ''' string start
250 regex : strPre + "'{3}",
251 next : "qstring3"
252 }, {
253 token : "string", // ' string
254 regex : strPre + "'(?=.)",
255 next : "qstring"
256 }, {
257 token : "constant.numeric", // imaginary
258 regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
259 }, {
260 token : "constant.numeric", // float
261 regex : floatNumber
262 }, {
263 token : "constant.numeric", // long integer
264 regex : integer + "[lL]\\b"
265 }, {
266 token : "constant.numeric", // integer
267 regex : integer + "\\b"
268 }, {
269 token : keywordMapper,
270 regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
271 }, {
272 token : "keyword.operator",
273 regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
274 }, {
275 token : "paren.lparen",
276 regex : "[\\[\\(\\{]"
277 }, {
278 token : "paren.rparen",
279 regex : "[\\]\\)\\}]"
280 }, {
281 token : "text",
282 regex : "\\s+"
283 } ],
284 "qqstring3" : [ {
285 token : "constant.language.escape",
286 regex : stringEscape
287 }, {
288 token : "string", // multi line """ string end
289 regex : '"{3}',
290 next : "start"
291 }, {
292 defaultToken : "string"
293 } ],
294 "qstring3" : [ {
295 token : "constant.language.escape",
296 regex : stringEscape
297 }, {
298 token : "string", // multi line ''' string end
299 regex : "'{3}",
300 next : "start"
301 }, {
302 defaultToken : "string"
303 } ],
304 "qqstring" : [{
305 token : "constant.language.escape",
306 regex : stringEscape
307 }, {
308 token : "string",
309 regex : "\\\\$",
310 next : "qqstring"
311 }, {
312 token : "string",
313 regex : '"|$',
314 next : "start"
315 }, {
316 defaultToken: "string"
317 }],
318 "qstring" : [{
319 token : "constant.language.escape",
320 regex : stringEscape
321 }, {
322 token : "string",
323 regex : "\\\\$",
324 next : "qstring"
325 }, {
326 token : "string",
327 regex : "'|$",
328 next : "start"
329 }, {
330 defaultToken: "string"
331 }]
332 };
333 };
334  
335 oop.inherits(PythonHighlightRules, TextHighlightRules);
336  
337 exports.PythonHighlightRules = PythonHighlightRules;
338 });
339  
340 ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
341 "use strict";
342  
343 var oop = require("../lib/oop");
344 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
345  
346 var JsonHighlightRules = function() {
347 this.$rules = {
348 "start" : [
349 {
350 token : "variable", // single line
351 regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'
352 }, {
353 token : "string", // single line
354 regex : '"',
355 next : "string"
356 }, {
357 token : "constant.numeric", // hex
358 regex : "0[xX][0-9a-fA-F]+\\b"
359 }, {
360 token : "constant.numeric", // float
361 regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
362 }, {
363 token : "constant.language.boolean",
364 regex : "(?:true|false)\\b"
365 }, {
366 token : "invalid.illegal", // single quoted strings are not allowed
367 regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
368 }, {
369 token : "invalid.illegal", // comments are not allowed
370 regex : "\\/\\/.*$"
371 }, {
372 token : "paren.lparen",
373 regex : "[[({]"
374 }, {
375 token : "paren.rparen",
376 regex : "[\\])}]"
377 }, {
378 token : "text",
379 regex : "\\s+"
380 }
381 ],
382 "string" : [
383 {
384 token : "constant.language.escape",
385 regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
386 }, {
387 token : "string",
388 regex : '[^"\\\\]+'
389 }, {
390 token : "string",
391 regex : '"',
392 next : "start"
393 }, {
394 token : "string",
395 regex : "",
396 next : "start"
397 }
398 ]
399 };
400  
401 };
402  
403 oop.inherits(JsonHighlightRules, TextHighlightRules);
404  
405 exports.JsonHighlightRules = JsonHighlightRules;
406 });
407  
408 ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
409 "use strict";
410  
411 var oop = require("../lib/oop");
412 var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
413 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
414 var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
415  
416 var JavaScriptHighlightRules = function(options) {
417 var keywordMapper = this.createKeywordMapper({
418 "variable.language":
419 "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
420 "Namespace|QName|XML|XMLList|" + // E4X
421 "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
422 "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
423 "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
424 "SyntaxError|TypeError|URIError|" +
425 "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
426 "isNaN|parseFloat|parseInt|" +
427 "JSON|Math|" + // Other
428 "this|arguments|prototype|window|document" , // Pseudo
429 "keyword":
430 "const|yield|import|get|set|async|await|" +
431 "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
432 "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
433 "__parent__|__count__|escape|unescape|with|__proto__|" +
434 "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
435 "storage.type":
436 "const|let|var|function",
437 "constant.language":
438 "null|Infinity|NaN|undefined",
439 "support.function":
440 "alert",
441 "constant.language.boolean": "true|false"
442 }, "identifier");
443 var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
444  
445 var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
446 "u[0-9a-fA-F]{4}|" + // unicode
447 "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
448 "[0-2][0-7]{0,2}|" + // oct
449 "3[0-7][0-7]?|" + // oct
450 "[4-7][0-7]?|" + //oct
451 ".)";
452  
453 this.$rules = {
454 "no_regex" : [
455 DocCommentHighlightRules.getStartRule("doc-start"),
456 comments("no_regex"),
457 {
458 token : "string",
459 regex : "'(?=.)",
460 next : "qstring"
461 }, {
462 token : "string",
463 regex : '"(?=.)',
464 next : "qqstring"
465 }, {
466 token : "constant.numeric", // hex
467 regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
468 }, {
469 token : "constant.numeric", // float
470 regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
471 }, {
472 token : [
473 "storage.type", "punctuation.operator", "support.function",
474 "punctuation.operator", "entity.name.function", "text","keyword.operator"
475 ],
476 regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
477 next: "function_arguments"
478 }, {
479 token : [
480 "storage.type", "punctuation.operator", "entity.name.function", "text",
481 "keyword.operator", "text", "storage.type", "text", "paren.lparen"
482 ],
483 regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
484 next: "function_arguments"
485 }, {
486 token : [
487 "entity.name.function", "text", "keyword.operator", "text", "storage.type",
488 "text", "paren.lparen"
489 ],
490 regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
491 next: "function_arguments"
492 }, {
493 token : [
494 "storage.type", "punctuation.operator", "entity.name.function", "text",
495 "keyword.operator", "text",
496 "storage.type", "text", "entity.name.function", "text", "paren.lparen"
497 ],
498 regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
499 next: "function_arguments"
500 }, {
501 token : [
502 "storage.type", "text", "entity.name.function", "text", "paren.lparen"
503 ],
504 regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
505 next: "function_arguments"
506 }, {
507 token : [
508 "entity.name.function", "text", "punctuation.operator",
509 "text", "storage.type", "text", "paren.lparen"
510 ],
511 regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
512 next: "function_arguments"
513 }, {
514 token : [
515 "text", "text", "storage.type", "text", "paren.lparen"
516 ],
517 regex : "(:)(\\s*)(function)(\\s*)(\\()",
518 next: "function_arguments"
519 }, {
520 token : "keyword",
521 regex : "(?:" + kwBeforeRe + ")\\b",
522 next : "start"
523 }, {
524 token : ["support.constant"],
525 regex : /that\b/
526 }, {
527 token : ["storage.type", "punctuation.operator", "support.function.firebug"],
528 regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
529 }, {
530 token : keywordMapper,
531 regex : identifierRe
532 }, {
533 token : "punctuation.operator",
534 regex : /[.](?![.])/,
535 next : "property"
536 }, {
537 token : "keyword.operator",
538 regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
539 <+=?|> next : "start"
540 <+=?|> }, {
541 <+=?|> token : "punctuation.operator",
542 <+=?|> regex : /[?:,;.]/,
543 <+=?|> next : "start"
544 <+=?|> }, {
545 <+=?|> token : "paren.lparen",
546 <+=?|> regex : /[\[({]/,
547 <+=?|> next : "start"
548 <+=?|> }, {
549 <+=?|> token : "paren.rparen",
550 <+=?|> regex : /[\])}]/
551 <+=?|> }, {
552 <+=?|> token: "comment",
553 <+=?|> regex: /^#!.*$/
554 <+=?|> }
555 <+=?|> ],
556 <+=?|> property: [{
557 <+=?|> token : "text",
558 <+=?|> regex : "\\s+"
559 <+=?|> }, {
560 <+=?|> token : [
561 <+=?|> "storage.type", "punctuation.operator", "entity.name.function", "text",
562 <+=?|> "keyword.operator", "text",
563 <+=?|> "storage.type", "text", "entity.name.function", "text", "paren.lparen"
564 <+=?|> ],
565 <+=?|> regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
566 <+=?|> next: "function_arguments"
567 <+=?|> }, {
568 <+=?|> token : "punctuation.operator",
569 <+=?|> regex : /[.](?![.])/
570 <+=?|> }, {
571 <+=?|> token : "support.function",
572 <+=?|> regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
573 <+=?|> }, {
574 <+=?|> token : "support.function.dom",
575 <+=?|> regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
576 <+=?|> }, {
577 <+=?|> token : "support.constant",
578 <+=?|> regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
579 <+=?|> }, {
580 <+=?|> token : "identifier",
581 <+=?|> regex : identifierRe
582 <+=?|> }, {
583 <+=?|> regex: "",
584 <+=?|> token: "empty",
585 <+=?|> next: "no_regex"
586 <+=?|> }
587 <+=?|> ],
588 <+=?|> "start": [
589 <+=?|> DocCommentHighlightRules.getStartRule("doc-start"),
590 <+=?|> comments("start"),
591 <+=?|> {
592 <+=?|> token: "string.regexp",
593 <+=?|> regex: "\\/",
594 <+=?|> next: "regex"
595 <+=?|> }, {
596 <+=?|> token : "text",
597 <+=?|> regex : "\\s+|^$",
598 <+=?|> next : "start"
599 <+=?|> }, {
600 <+=?|> token: "empty",
601 <+=?|> regex: "",
602 <+=?|> next: "no_regex"
603 <+=?|> }
604 <+=?|> ],
605 <+=?|> "regex": [
606 <+=?|> {
607 <+=?|> token: "regexp.keyword.operator",
608 <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
609 <+=?|> }, {
610 <+=?|> token: "string.regexp",
611 <+=?|> regex: "/[sxngimy]*",
612 <+=?|> next: "no_regex"
613 <+=?|> }, {
614 <+=?|> token : "invalid",
615 <+=?|> regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
616 <+=?|> }, {
617 <+=?|> token : "constant.language.escape",
618 <+=?|> regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
619 <+=?|> }, {
620 <+=?|> token : "constant.language.delimiter",
621 <+=?|> regex: /\|/
622 <+=?|> }, {
623 <+=?|> token: "constant.language.escape",
624 <+=?|> regex: /\[\^?/,
625 <+=?|> next: "regex_character_class"
626 <+=?|> }, {
627 <+=?|> token: "empty",
628 <+=?|> regex: "$",
629 <+=?|> next: "no_regex"
630 <+=?|> }, {
631 <+=?|> defaultToken: "string.regexp"
632 <+=?|> }
633 <+=?|> ],
634 <+=?|> "regex_character_class": [
635 <+=?|> {
636 <+=?|> token: "regexp.charclass.keyword.operator",
637 <+=?|> regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
638 <+=?|> }, {
639 <+=?|> token: "constant.language.escape",
640 <+=?|> regex: "]",
641 <+=?|> next: "regex"
642 <+=?|> }, {
643 <+=?|> token: "constant.language.escape",
644 <+=?|> regex: "-"
645 <+=?|> }, {
646 <+=?|> token: "empty",
647 <+=?|> regex: "$",
648 <+=?|> next: "no_regex"
649 <+=?|> }, {
650 <+=?|> defaultToken: "string.regexp.charachterclass"
651 <+=?|> }
652 <+=?|> ],
653 <+=?|> "function_arguments": [
654 <+=?|> {
655 <+=?|> token: "variable.parameter",
656 <+=?|> regex: identifierRe
657 <+=?|> }, {
658 <+=?|> token: "punctuation.operator",
659 <+=?|> regex: "[, ]+"
660 <+=?|> }, {
661 <+=?|> token: "punctuation.operator",
662 <+=?|> regex: "$"
663 <+=?|> }, {
664 <+=?|> token: "empty",
665 <+=?|> regex: "",
666 <+=?|> next: "no_regex"
667 <+=?|> }
668 <+=?|> ],
669 <+=?|> "qqstring" : [
670 <+=?|> {
671 <+=?|> token : "constant.language.escape",
672 <+=?|> regex : escapedRe
673 <+=?|> }, {
674 <+=?|> token : "string",
675 <+=?|> regex : "\\\\$",
676 <+=?|> next : "qqstring"
677 <+=?|> }, {
678 <+=?|> token : "string",
679 <+=?|> regex : '"|$',
680 <+=?|> next : "no_regex"
681 <+=?|> }, {
682 <+=?|> defaultToken: "string"
683 <+=?|> }
684 <+=?|> ],
685 <+=?|> "qstring" : [
686 <+=?|> {
687 <+=?|> token : "constant.language.escape",
688 <+=?|> regex : escapedRe
689 <+=?|> }, {
690 <+=?|> token : "string",
691 <+=?|> regex : "\\\\$",
692 <+=?|> next : "qstring"
693 <+=?|> }, {
694 <+=?|> token : "string",
695 <+=?|> regex : "'|$",
696 <+=?|> next : "no_regex"
697 <+=?|> }, {
698 <+=?|> defaultToken: "string"
699 <+=?|> }
700 <+=?|> ]
701 <+=?|> };
702  
703  
704 <+=?|> if (!options || !options.noES6) {
705 <+=?|> this.$rules.no_regex.unshift({
706 <+=?|> regex: "[{}]", onMatch: function(val, state, stack) {
707 <+=?|> this.next = val == "{" ? this.nextState : "";
708 <+=?|> if (val == "{" && stack.length) {
709 <+=?|> stack.unshift("start", state);
710 <+=?|> }
711 <+=?|> else if (val == "}" && stack.length) {
712 <+=?|> stack.shift();
713 <+=?|> this.next = stack.shift();
714 <+=?|> if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
715 <+=?|> return "paren.quasi.end";
716 <+=?|> }
717 <+=?|> return val == "{" ? "paren.lparen" : "paren.rparen";
718 <+=?|> },
719 <+=?|> nextState: "start"
720 <+=?|> }, {
721 <+=?|> token : "string.quasi.start",
722 <+=?|> regex : /`/,
723 <+=?|> push : [{
724 <+=?|> token : "constant.language.escape",
725 <+=?|> regex : escapedRe
726 <+=?|> }, {
727 <+=?|> token : "paren.quasi.start",
728 <+=?|> regex : /\${/,
729 <+=?|> push : "start"
730 <+=?|> }, {
731 <+=?|> token : "string.quasi.end",
732 <+=?|> regex : /`/,
733 <+=?|> next : "pop"
734 <+=?|> }, {
735 <+=?|> defaultToken: "string.quasi"
736 <+=?|> }]
737 <+=?|> });
738  
739 <+=?|> if (!options || options.jsx != false)
740 <+=?|> JSX.call(this);
741 <+=?|> }
742  
743 <+=?|> this.embedRules(DocCommentHighlightRules, "doc-",
744 <+=?|> [ DocCommentHighlightRules.getEndRule("no_regex") ]);
745  
746 <+=?|> this.normalizeRules();
747 <+=?|>};
748  
749 <+=?|>oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
750  
751 <+=?|>function JSX() {
752 <+=?|> var tagRegex = identifierRe.replace("\\d", "\\d\\-");
753 <+=?|> var jsxTag = {
754 <+=?|> onMatch : function(val, state, stack) {
755 <+=?|> var offset = val.charAt(1) == "/" ? 2 : 1;
756 <+=?|> if (offset == 1) {
757 <+=?|> if (state != this.nextState)
758 <+=?|> stack.unshift(this.next, this.nextState, 0);
759 <+=?|> else
760 <+=?|> stack.unshift(this.next);
761 <+=?|> stack[2]++;
762 <+=?|> } else if (offset == 2) {
763 <+=?|> if (state == this.nextState) {
764 <+=?|> stack[1]--;
765 <+=?|> if (!stack[1] || stack[1] < 0) {
766 <+=?|> stack.shift();
767 <+=?|> stack.shift();
768 <+=?|> }
769 <+=?|> }
770 <+=?|> }
771 <+=?|> return [{
772 <+=?|> type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
773 <+=?|> value: val.slice(0, offset)
774 <+=?|> }, {
775 <+=?|> type: "meta.tag.tag-name.xml",
776 <+=?|> value: val.substr(offset)
777 <+=?|> }];
778 <+=?|> },
779 <+=?|> regex : "</?" + tagRegex + "",
780 <+=?|> next: "jsxAttributes",
781 <+=?|> nextState: "jsx"
782 <+=?|> };
783 <+=?|> this.$rules.start.unshift(jsxTag);
784 <+=?|> var jsxJsRule = {
785 <+=?|> regex: "{",
786 <+=?|> token: "paren.quasi.start",
787 <+=?|> push: "start"
788 <+=?|> };
789 <+=?|> this.$rules.jsx = [
790 <+=?|> jsxJsRule,
791 <+=?|> jsxTag,
792 <+=?|> {include : "reference"},
793 <+=?|> {defaultToken: "string"}
794 <+=?|> ];
795 <+=?|> this.$rules.jsxAttributes = [{
796 <+=?|> token : "meta.tag.punctuation.tag-close.xml",
797 <+=?|> regex : "/?>",
798 <+=?|> onMatch : function(value, currentState, stack) {
799 <+=?|> if (currentState == stack[0])
800 <+=?|> stack.shift();
801 <+=?|> if (value.length == 2) {
802 <+=?|> if (stack[0] == this.nextState)
803 <+=?|> stack[1]--;
804 <+=?|> if (!stack[1] || stack[1] < 0) {
805 <+=?|> stack.splice(0, 2);
806 <+=?|> }
807 <+=?|> }
808 <+=?|> this.next = stack[0] || "start";
809 <+=?|> return [{type: this.token, value: value}];
810 <+=?|> },
811 <+=?|> nextState: "jsx"
812 <+=?|> },
813 <+=?|> jsxJsRule,
814 <+=?|> comments("jsxAttributes"),
815 <+=?|> {
816 <+=?|> token : "entity.other.attribute-name.xml",
817 <+=?|> regex : tagRegex
818 <+=?|> }, {
819 <+=?|> token : "keyword.operator.attribute-equals.xml",
820 <+=?|> regex : "="
821 <+=?|> }, {
822 <+=?|> token : "text.tag-whitespace.xml",
823 <+=?|> regex : "\\s+"
824 <+=?|> }, {
825 <+=?|> token : "string.attribute-value.xml",
826 <+=?|> regex : "'",
827 <+=?|> stateName : "jsx_attr_q",
828 <+=?|> push : [
829 <+=?|> {token : "string.attribute-value.xml", regex: "'", next: "pop"},
830 <+=?|> {include : "reference"},
831 <+=?|> {defaultToken : "string.attribute-value.xml"}
832 <+=?|> ]
833 <+=?|> }, {
834 <+=?|> token : "string.attribute-value.xml",
835 <+=?|> regex : '"',
836 <+=?|> stateName : "jsx_attr_qq",
837 <+=?|> push : [
838 <+=?|> {token : "string.attribute-value.xml", regex: '"', next: "pop"},
839 <+=?|> {include : "reference"},
840 <+=?|> {defaultToken : "string.attribute-value.xml"}
841 <+=?|> ]
842 <+=?|> },
843 <+=?|> jsxTag
844 <+=?|> ];
845 <+=?|> this.$rules.reference = [{
846 <+=?|> token : "constant.language.escape.reference.xml",
847 <+=?|> regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
848 <+=?|> }];
849 <+=?|>}
850  
851 <+=?|>function comments(next) {
852 <+=?|> return [
853 <+=?|> {
854 <+=?|> token : "comment", // multi line comment
855 <+=?|> regex : /\/\*/,
856 <+=?|> next: [
857 <+=?|> DocCommentHighlightRules.getTagRule(),
858 <+=?|> {token : "comment", regex : "\\*\\/", next : next || "pop"},
859 <+=?|> {defaultToken : "comment", caseInsensitive: true}
860 <+=?|> ]
861 <+=?|> }, {
862 <+=?|> token : "comment",
863 <+=?|> regex : "\\/\\/",
864 <+=?|> next: [
865 <+=?|> DocCommentHighlightRules.getTagRule(),
866 <+=?|> {token : "comment", regex : "$|^", next : next || "pop"},
867 <+=?|> {defaultToken : "comment", caseInsensitive: true}
868 <+=?|> ]
869 <+=?|> }
870 <+=?|> ];
871 <+=?|>}
872 <+=?|>exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
873 <+=?|>});
874  
875 <+=?|>ace.define("ace/mode/pgsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/perl_highlight_rules","ace/mode/python_highlight_rules","ace/mode/json_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module) {
876  
877 <+=?|>var oop = require("../lib/oop");
878 <+=?|>var lang = require("../lib/lang");
879 <+=?|>var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
880 <+=?|>var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
881 <+=?|>var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
882 <+=?|>var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
883 <+=?|>var JsonHighlightRules = require("./json_highlight_rules").JsonHighlightRules;
884 <+=?|>var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
885  
886 <+=?|>var PgsqlHighlightRules = function() {
887 <+=?|> var keywords = (
888 <+=?|> "abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|" +
889 <+=?|> "analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|anyrange|array|as|asc|" +
890 <+=?|> "assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|" +
891 <+=?|> "bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|" +
892 <+=?|> "catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|" +
893 <+=?|> "cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|" +
894 <+=?|> "configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|" +
895 <+=?|> "create|cross|cstring|csv|current|current_catalog|current_date|current_role|" +
896 <+=?|> "current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|" +
897 <+=?|> "date|daterange|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|" +
898 <+=?|> "definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|" +
899 <+=?|> "domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|event_trigger|" +
900 <+=?|> "except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|" +
901 <+=?|> "family|fdw_handler|fetch|first|float|float4|float8|following|for|force|foreign|forward|" +
902 <+=?|> "freeze|from|full|function|functions|global|grant|granted|greatest|group|gtsvector|handler|" +
903 <+=?|> "having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|" +
904 <+=?|> "increment|index|indexes|inet|inherit|inherits|initially|inline|inner|inout|input|" +
905 <+=?|> "insensitive|insert|instead|int|int2|int2vector|int4|int4range|int8|int8range|integer|" +
906 <+=?|> "internal|intersect|interval|into|invoker|is|isnull|isolation|join|json|key|label|language|" +
907 <+=?|> "language_handler|large|last|lateral|lc_collate|lc_ctype|leading|leakproof|least|left|level|" +
908 <+=?|> "like|limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|" +
909 <+=?|> "mapping|match|materialized|maxvalue|minute|minvalue|mode|money|month|move|name|names|" +
910 <+=?|> "national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|" +
911 <+=?|> "numeric|numrange|object|of|off|offset|oid|oids|oidvector|on|only|opaque|operator|option|" +
912 <+=?|> "options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|" +
913 <+=?|> "password|path|pg_attribute|pg_auth_members|pg_authid|pg_class|pg_database|pg_node_tree|" +
914 <+=?|> "pg_proc|pg_type|placing|plans|point|polygon|position|preceding|precision|prepare|prepared|" +
915 <+=?|> "preserve|primary|prior|privileges|procedural|procedure|program|quote|range|read|real|" +
916 <+=?|> "reassign|recheck|record|recursive|ref|refcursor|references|refresh|regclass|regconfig|" +
917 <+=?|> "regdictionary|regoper|regoperator|regproc|regprocedure|regtype|reindex|relative|release|" +
918 <+=?|> "reltime|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|" +
919 <+=?|> "right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|" +
920 <+=?|> "sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|" +
921 <+=?|> "simple|smallint|smgr|snapshot|some|stable|standalone|start|statement|statistics|stdin|" +
922 <+=?|> "stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|" +
923 <+=?|> "template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|tinterval|to|trailing|" +
924 <+=?|> "transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsrange|tstzrange|tsvector|" +
925 <+=?|> "txid_snapshot|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|" +
926 <+=?|> "unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|" +
927 <+=?|> "varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|" +
928 <+=?|> "with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|" +
929 <+=?|> "xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone"
930 <+=?|> );
931  
932  
933 <+=?|> var builtinFunctions = (
934 <+=?|> "RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|" +
935 <+=?|> "RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|" +
936 <+=?|> "RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|" +
937 <+=?|> "RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|" +
938 <+=?|> "abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|acldefault|" +
939 <+=?|> "aclexplode|aclinsert|aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|" +
940 <+=?|> "anyarray_in|anyarray_out|anyarray_recv|anyarray_send|anyelement_in|anyelement_out|" +
941 <+=?|> "anyenum_in|anyenum_out|anynonarray_in|anynonarray_out|anyrange_in|anyrange_out|" +
942 <+=?|> "anytextcat|area|areajoinsel|areasel|array_agg|array_agg_finalfn|array_agg_transfn|" +
943 <+=?|> "array_append|array_cat|array_dims|array_eq|array_fill|array_ge|array_gt|array_in|" +
944 <+=?|> "array_larger|array_le|array_length|array_lower|array_lt|array_ndims|array_ne|array_out|" +
945 <+=?|> "array_prepend|array_recv|array_remove|array_replace|array_send|array_smaller|" +
946 <+=?|> "array_to_json|array_to_string|array_typanalyze|array_upper|arraycontained|" +
947 <+=?|> "arraycontains|arraycontjoinsel|arraycontsel|arrayoverlap|ascii|ascii_to_mic|" +
948 <+=?|> "ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|big5_to_utf8|bit_and|bit_in|" +
949 <+=?|> "bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|bitcmp|biteq|bitge|bitgt|bitle|" +
950 <+=?|> "bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|bittypmodin|bittypmodout|bitxor|bool|" +
951 <+=?|> "bool_and|bool_or|booland_statefunc|booleq|boolge|boolgt|boolin|boolle|boollt|boolne|" +
952 <+=?|> "boolor_statefunc|boolout|boolrecv|boolsend|box|box_above|box_above_eq|box_add|box_below|" +
953 <+=?|> "box_below_eq|box_center|box_contain|box_contain_pt|box_contained|box_distance|box_div|" +
954 <+=?|> "box_eq|box_ge|box_gt|box_in|box_intersect|box_le|box_left|box_lt|box_mul|box_out|" +
955 <+=?|> "box_overabove|box_overbelow|box_overlap|box_overleft|box_overright|box_recv|box_right|" +
956 <+=?|> "box_same|box_send|box_sub|bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|" +
957 <+=?|> "bpchar_pattern_le|bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|" +
958 <+=?|> "bpchargt|bpchariclike|bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|" +
959 <+=?|> "bpcharlike|bpcharlt|bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|" +
960 <+=?|> "bpcharregexne|bpcharsend|bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|" +
961 <+=?|> "btarraycmp|btbeginscan|btboolcmp|btbpchar_pattern_cmp|btbuild|btbuildempty|" +
962 <+=?|> "btbulkdelete|btcanreturn|btcharcmp|btcostestimate|btendscan|btfloat48cmp|btfloat4cmp|" +
963 <+=?|> "btfloat4sortsupport|btfloat84cmp|btfloat8cmp|btfloat8sortsupport|btgetbitmap|" +
964 <+=?|> "btgettuple|btinsert|btint24cmp|btint28cmp|btint2cmp|btint2sortsupport|btint42cmp|" +
965 <+=?|> "btint48cmp|btint4cmp|btint4sortsupport|btint82cmp|btint84cmp|btint8cmp|" +
966 <+=?|> "btint8sortsupport|btmarkpos|btnamecmp|btnamesortsupport|btoidcmp|btoidsortsupport|" +
967 <+=?|> "btoidvectorcmp|btoptions|btrecordcmp|btreltimecmp|btrescan|btrestrpos|btrim|" +
968 <+=?|> "bttext_pattern_cmp|bttextcmp|bttidcmp|bttintervalcmp|btvacuumcleanup|" +
969 <+=?|> "bytea_string_agg_finalfn|bytea_string_agg_transfn|byteacat|byteacmp|byteaeq|byteage|" +
970 <+=?|> "byteagt|byteain|byteale|bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|" +
971 <+=?|> "cash_cmp|cash_div_cash|cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|" +
972 <+=?|> "cash_ge|cash_gt|cash_in|cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|" +
973 <+=?|> "cash_mul_int2|cash_mul_int4|cash_ne|cash_out|cash_pl|cash_recv|cash_send|cash_words|" +
974 <+=?|> "cashlarger|cashsmaller|cbrt|ceil|ceiling|center|char|char_length|character_length|chareq|" +
975 <+=?|> "charge|chargt|charin|charle|charlt|charne|charout|charrecv|charsend|chr|cideq|cidin|cidout|" +
976 <+=?|> "cidr|cidr_in|cidr_out|cidr_recv|cidr_send|cidrecv|cidsend|circle|circle_above|" +
977 <+=?|> "circle_add_pt|circle_below|circle_center|circle_contain|circle_contain_pt|" +
978 <+=?|> "circle_contained|circle_distance|circle_div_pt|circle_eq|circle_ge|circle_gt|circle_in|" +
979 <+=?|> "circle_le|circle_left|circle_lt|circle_mul_pt|circle_ne|circle_out|circle_overabove|" +
980 <+=?|> "circle_overbelow|circle_overlap|circle_overleft|circle_overright|circle_recv|" +
981 <+=?|> "circle_right|circle_same|circle_send|circle_sub_pt|clock_timestamp|close_lb|close_ls|" +
982 <+=?|> "close_lseg|close_pb|close_pl|close_ps|close_sb|close_sl|col_description|concat|concat_ws|" +
983 <+=?|> "contjoinsel|contsel|convert|convert_from|convert_to|corr|cos|cot|count|covar_pop|" +
984 <+=?|> "covar_samp|cstring_in|cstring_out|cstring_recv|cstring_send|cume_dist|current_database|" +
985 <+=?|> "current_query|current_schema|current_schemas|current_setting|current_user|currtid|" +
986 <+=?|> "currtid2|currval|cursor_to_xml|cursor_to_xmlschema|database_to_xml|" +
987 <+=?|> "database_to_xml_and_xmlschema|database_to_xmlschema|date|date_cmp|date_cmp_timestamp|" +
988 <+=?|> "date_cmp_timestamptz|date_eq|date_eq_timestamp|date_eq_timestamptz|date_ge|" +
989 <+=?|> "date_ge_timestamp|date_ge_timestamptz|date_gt|date_gt_timestamp|date_gt_timestamptz|" +
990 <+=?|> "date_in|date_larger|date_le|date_le_timestamp|date_le_timestamptz|date_lt|" +
991 <+=?|> "date_lt_timestamp|date_lt_timestamptz|date_mi|date_mi_interval|date_mii|date_ne|" +
992 <+=?|> "date_ne_timestamp|date_ne_timestamptz|date_out|date_part|date_pl_interval|date_pli|" +
993 <+=?|> "date_recv|date_send|date_smaller|date_sortsupport|date_trunc|daterange|" +
994 <+=?|> "daterange_canonical|daterange_subdiff|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|" +
995 <+=?|> "dense_rank|dexp|diagonal|diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|" +
996 <+=?|> "dist_pc|dist_pl|dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|" +
997 <+=?|> "dpow|dround|dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|" +
998 <+=?|> "dsynonym_init|dsynonym_lexize|dtrunc|elem_contained_by_range|encode|enum_cmp|enum_eq|" +
999 <+=?|> "enum_first|enum_ge|enum_gt|enum_in|enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|" +
1000 <+=?|> "enum_range|enum_recv|enum_send|enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|" +
1001 <+=?|> "euc_cn_to_utf8|euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|" +
1002 <+=?|> "euc_jp_to_sjis|euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|" +
1003 <+=?|> "euc_tw_to_mic|euc_tw_to_utf8|event_trigger_in|event_trigger_out|every|exp|factorial|" +
1004 <+=?|> "family|fdw_handler_in|fdw_handler_out|first_value|float4|float48div|float48eq|float48ge|" +
1005 <+=?|> "float48gt|float48le|float48lt|float48mi|float48mul|float48ne|float48pl|float4_accum|" +
1006 <+=?|> "float4abs|float4div|float4eq|float4ge|float4gt|float4in|float4larger|float4le|float4lt|" +
1007 <+=?|> "float4mi|float4mul|float4ne|float4out|float4pl|float4recv|float4send|float4smaller|" +
1008 <+=?|> "float4um|float4up|float8|float84div|float84eq|float84ge|float84gt|float84le|float84lt|" +
1009 <+=?|> "float84mi|float84mul|float84ne|float84pl|float8_accum|float8_avg|float8_corr|" +
1010 <+=?|> "float8_covar_pop|float8_covar_samp|float8_regr_accum|float8_regr_avgx|" +
1011 <+=?|> "float8_regr_avgy|float8_regr_intercept|float8_regr_r2|float8_regr_slope|" +
1012 <+=?|> "float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|float8_stddev_samp|" +
1013 <+=?|> "float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|float8ge|float8gt|float8in|" +
1014 <+=?|> "float8larger|float8le|float8lt|float8mi|float8mul|float8ne|float8out|float8pl|float8recv|" +
1015 <+=?|> "float8send|float8smaller|float8um|float8up|floor|flt4_mul_cash|flt8_mul_cash|" +
1016 <+=?|> "fmgr_c_validator|fmgr_internal_validator|fmgr_sql_validator|format|format_type|" +
1017 <+=?|> "gb18030_to_utf8|gbk_to_utf8|generate_series|generate_subscripts|get_bit|get_byte|" +
1018 <+=?|> "get_current_ts_config|getdatabaseencoding|getpgusername|gin_cmp_prefix|" +
1019 <+=?|> "gin_cmp_tslexeme|gin_extract_tsquery|gin_extract_tsvector|gin_tsquery_consistent|" +
1020 <+=?|> "ginarrayconsistent|ginarrayextract|ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|" +
1021 <+=?|> "gincostestimate|ginendscan|gingetbitmap|gininsert|ginmarkpos|ginoptions|" +
1022 <+=?|> "ginqueryarrayextract|ginrescan|ginrestrpos|ginvacuumcleanup|gist_box_compress|" +
1023 <+=?|> "gist_box_consistent|gist_box_decompress|gist_box_penalty|gist_box_picksplit|" +
1024 <+=?|> "gist_box_same|gist_box_union|gist_circle_compress|gist_circle_consistent|" +
1025 <+=?|> "gist_point_compress|gist_point_consistent|gist_point_distance|gist_poly_compress|" +
1026 <+=?|> "gist_poly_consistent|gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|" +
1027 <+=?|> "gistcostestimate|gistendscan|gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|" +
1028 <+=?|> "gistoptions|gistrescan|gistrestrpos|gistvacuumcleanup|gtsquery_compress|" +
1029 <+=?|> "gtsquery_consistent|gtsquery_decompress|gtsquery_penalty|gtsquery_picksplit|" +
1030 <+=?|> "gtsquery_same|gtsquery_union|gtsvector_compress|gtsvector_consistent|" +
1031 <+=?|> "gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|gtsvector_same|" +
1032 <+=?|> "gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|" +
1033 <+=?|> "has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|" +
1034 <+=?|> "has_function_privilege|has_language_privilege|has_schema_privilege|" +
1035 <+=?|> "has_sequence_privilege|has_server_privilege|has_table_privilege|" +
1036 <+=?|> "has_tablespace_privilege|has_type_privilege|hash_aclitem|hash_array|hash_numeric|" +
1037 <+=?|> "hash_range|hashbeginscan|hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|" +
1038 <+=?|> "hashcostestimate|hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|" +
1039 <+=?|> "hashinet|hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|" +
1040 <+=?|> "hashname|hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|" +
1041 <+=?|> "hashvacuumcleanup|hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|" +
1042 <+=?|> "icnlikejoinsel|icnlikesel|icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|" +
1043 <+=?|> "inet_client_addr|inet_client_port|inet_in|inet_out|inet_recv|inet_send|" +
1044 <+=?|> "inet_server_addr|inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|" +
1045 <+=?|> "initcap|int2|int24div|int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|" +
1046 <+=?|> "int24pl|int28div|int28eq|int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|" +
1047 <+=?|> "int2_accum|int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|" +
1048 <+=?|> "int2gt|int2in|int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|" +
1049 <+=?|> "int2pl|int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|" +
1050 <+=?|> "int2vectorin|int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|" +
1051 <+=?|> "int42ge|int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|" +
1052 <+=?|> "int48gt|int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|" +
1053 <+=?|> "int4_mul_cash|int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|" +
1054 <+=?|> "int4larger|int4le|int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|" +
1055 <+=?|> "int4range|int4range_canonical|int4range_subdiff|int4recv|int4send|int4shl|int4shr|" +
1056 <+=?|> "int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|int82le|int82lt|" +
1057 <+=?|> "int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|int84lt|int84mi|" +
1058 <+=?|> "int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|int8abs|int8and|" +
1059 <+=?|> "int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|int8inc_float8_float8|int8larger|" +
1060 <+=?|> "int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|int8or|int8out|int8pl|int8pl_inet|" +
1061 <+=?|> "int8range|int8range_canonical|int8range_subdiff|int8recv|int8send|int8shl|int8shr|" +
1062 <+=?|> "int8smaller|int8um|int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|" +
1063 <+=?|> "internal_out|interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|" +
1064 <+=?|> "interval_ge|interval_gt|interval_hash|interval_in|interval_larger|interval_le|" +
1065 <+=?|> "interval_lt|interval_mi|interval_mul|interval_ne|interval_out|interval_pl|" +
1066 <+=?|> "interval_pl_date|interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|" +
1067 <+=?|> "interval_pl_timetz|interval_recv|interval_send|interval_smaller|interval_transform|" +
1068 <+=?|> "interval_um|intervaltypmodin|intervaltypmodout|intinterval|isclosed|isempty|isfinite|" +
1069 <+=?|> "ishorizontal|iso8859_1_to_utf8|iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|" +
1070 <+=?|> "iso_to_win866|isopen|isparallel|isperp|isvertical|johab_to_utf8|json_agg|" +
1071 <+=?|> "json_agg_finalfn|json_agg_transfn|json_array_element|json_array_element_text|" +
1072 <+=?|> "json_array_elements|json_array_length|json_each|json_each_text|json_extract_path|" +
1073 <+=?|> "json_extract_path_op|json_extract_path_text|json_extract_path_text_op|json_in|" +
1074 <+=?|> "json_object_field|json_object_field_text|json_object_keys|json_out|" +
1075 <+=?|> "json_populate_record|json_populate_recordset|json_recv|json_send|justify_days|" +
1076 <+=?|> "justify_hours|justify_interval|koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|" +
1077 <+=?|> "koi8r_to_win1251|koi8r_to_win866|koi8u_to_utf8|lag|language_handler_in|" +
1078 <+=?|> "language_handler_out|last_value|lastval|latin1_to_mic|latin2_to_mic|latin2_to_win1250|" +
1079 <+=?|> "latin3_to_mic|latin4_to_mic|lead|left|length|like|like_escape|likejoinsel|likesel|line|" +
1080 <+=?|> "line_distance|line_eq|line_horizontal|line_in|line_interpt|line_intersect|line_out|" +
1081 <+=?|> "line_parallel|line_perp|line_recv|line_send|line_vertical|ln|lo_close|lo_creat|lo_create|" +
1082 <+=?|> "lo_export|lo_import|lo_lseek|lo_lseek64|lo_open|lo_tell|lo_tell64|lo_truncate|" +
1083 <+=?|> "lo_truncate64|lo_unlink|log|loread|lower|lower_inc|lower_inf|lowrite|lpad|lseg|lseg_center|" +
1084 <+=?|> "lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|" +
1085 <+=?|> "lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|" +
1086 <+=?|> "lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_and|macaddr_cmp|macaddr_eq|macaddr_ge|" +
1087 <+=?|> "macaddr_gt|macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_not|macaddr_or|" +
1088 <+=?|> "macaddr_out|macaddr_recv|macaddr_send|makeaclitem|masklen|max|md5|mic_to_ascii|" +
1089 <+=?|> "mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|" +
1090 <+=?|> "mic_to_koi8r|mic_to_latin1|mic_to_latin2|mic_to_latin3|mic_to_latin4|mic_to_sjis|" +
1091 <+=?|> "mic_to_win1250|mic_to_win1251|mic_to_win866|min|mktinterval|mod|money|mul_d_interval|" +
1092 <+=?|> "name|nameeq|namege|namegt|nameiclike|nameicnlike|nameicregexeq|nameicregexne|namein|" +
1093 <+=?|> "namele|namelike|namelt|namene|namenlike|nameout|namerecv|nameregexeq|nameregexne|namesend|" +
1094 <+=?|> "neqjoinsel|neqsel|netmask|network|network_cmp|network_eq|network_ge|network_gt|" +
1095 <+=?|> "network_le|network_lt|network_ne|network_sub|network_subeq|network_sup|network_supeq|" +
1096 <+=?|> "nextval|nlikejoinsel|nlikesel|notlike|now|npoints|nth_value|ntile|numeric_abs|" +
1097 <+=?|> "numeric_accum|numeric_add|numeric_avg|numeric_avg_accum|numeric_cmp|numeric_div|" +
1098 <+=?|> "numeric_div_trunc|numeric_eq|numeric_exp|numeric_fac|numeric_ge|numeric_gt|numeric_in|" +
1099 <+=?|> "numeric_inc|numeric_larger|numeric_le|numeric_ln|numeric_log|numeric_lt|numeric_mod|" +
1100 <+=?|> "numeric_mul|numeric_ne|numeric_out|numeric_power|numeric_recv|numeric_send|" +
1101 <+=?|> "numeric_smaller|numeric_sqrt|numeric_stddev_pop|numeric_stddev_samp|numeric_sub|" +
1102 <+=?|> "numeric_transform|numeric_uminus|numeric_uplus|numeric_var_pop|numeric_var_samp|" +
1103 <+=?|> "numerictypmodin|numerictypmodout|numnode|numrange|numrange_subdiff|obj_description|" +
1104 <+=?|> "octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|oidrecv|oidsend|" +
1105 <+=?|> "oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|oidvectorlt|" +
1106 <+=?|> "oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|on_pl|" +
1107 <+=?|> "on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|path_add_pt|" +
1108 <+=?|> "path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|path_length|" +
1109 <+=?|> "path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|path_out|" +
1110 <+=?|> "path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|" +
1111 <+=?|> "pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|" +
1112 <+=?|> "pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|" +
1113 <+=?|> "pg_available_extension_versions|pg_available_extensions|pg_backend_pid|" +
1114 <+=?|> "pg_backup_start_time|pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|" +
1115 <+=?|> "pg_collation_for|pg_collation_is_visible|pg_column_is_updatable|pg_column_size|" +
1116 <+=?|> "pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|" +
1117 <+=?|> "pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|" +
1118 <+=?|> "pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|" +
1119 <+=?|> "pg_event_trigger_dropped_objects|pg_export_snapshot|pg_extension_config_dump|" +
1120 <+=?|> "pg_extension_update_paths|pg_function_is_visible|pg_get_constraintdef|pg_get_expr|" +
1121 <+=?|> "pg_get_function_arguments|pg_get_function_identity_arguments|" +
1122 <+=?|> "pg_get_function_result|pg_get_functiondef|pg_get_indexdef|pg_get_keywords|" +
1123 <+=?|> "pg_get_multixact_members|pg_get_ruledef|pg_get_serial_sequence|pg_get_triggerdef|" +
1124 <+=?|> "pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_identify_object|pg_indexes_size|" +
1125 <+=?|> "pg_is_in_backup|pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|" +
1126 <+=?|> "pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|" +
1127 <+=?|> "pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|" +
1128 <+=?|> "pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|" +
1129 <+=?|> "pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|" +
1130 <+=?|> "pg_opfamily_is_visible|pg_options_to_table|pg_postmaster_start_time|" +
1131 <+=?|> "pg_prepared_statement|pg_prepared_xact|pg_read_binary_file|pg_read_file|" +
1132 <+=?|> "pg_relation_filenode|pg_relation_filepath|pg_relation_is_updatable|pg_relation_size|" +
1133 <+=?|> "pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|pg_show_all_settings|" +
1134 <+=?|> "pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|pg_stat_file|" +
1135 <+=?|> "pg_stat_get_activity|pg_stat_get_analyze_count|pg_stat_get_autoanalyze_count|" +
1136 <+=?|> "pg_stat_get_autovacuum_count|pg_stat_get_backend_activity|" +
1137 <+=?|> "pg_stat_get_backend_activity_start|pg_stat_get_backend_client_addr|" +
1138 <+=?|> "pg_stat_get_backend_client_port|pg_stat_get_backend_dbid|pg_stat_get_backend_idset|" +
1139 <+=?|> "pg_stat_get_backend_pid|pg_stat_get_backend_start|pg_stat_get_backend_userid|" +
1140 <+=?|> "pg_stat_get_backend_waiting|pg_stat_get_backend_xact_start|" +
1141 <+=?|> "pg_stat_get_bgwriter_buf_written_checkpoints|" +
1142 <+=?|> "pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|" +
1143 <+=?|> "pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|" +
1144 <+=?|> "pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|" +
1145 <+=?|> "pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|" +
1146 <+=?|> "pg_stat_get_buf_written_backend|pg_stat_get_checkpoint_sync_time|" +
1147 <+=?|> "pg_stat_get_checkpoint_write_time|pg_stat_get_db_blk_read_time|" +
1148 <+=?|> "pg_stat_get_db_blk_write_time|pg_stat_get_db_blocks_fetched|" +
1149 <+=?|> "pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|" +
1150 <+=?|> "pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|" +
1151 <+=?|> "pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|" +
1152 <+=?|> "pg_stat_get_db_conflict_tablespace|pg_stat_get_db_deadlocks|" +
1153 <+=?|> "pg_stat_get_db_numbackends|pg_stat_get_db_stat_reset_time|" +
1154 <+=?|> "pg_stat_get_db_temp_bytes|pg_stat_get_db_temp_files|pg_stat_get_db_tuples_deleted|" +
1155 <+=?|> "pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|" +
1156 <+=?|> "pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|" +
1157 <+=?|> "pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|" +
1158 <+=?|> "pg_stat_get_function_calls|pg_stat_get_function_self_time|" +
1159 <+=?|> "pg_stat_get_function_total_time|pg_stat_get_last_analyze_time|" +
1160 <+=?|> "pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|" +
1161 <+=?|> "pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|" +
1162 <+=?|> "pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|" +
1163 <+=?|> "pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|" +
1164 <+=?|> "pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|" +
1165 <+=?|> "pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|" +
1166 <+=?|> "pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|" +
1167 <+=?|> "pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_total_time|" +
1168 <+=?|> "pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|" +
1169 <+=?|> "pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|" +
1170 <+=?|> "pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|" +
1171 <+=?|> "pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|" +
1172 <+=?|> "pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|" +
1173 <+=?|> "pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|" +
1174 <+=?|> "pg_tablespace_databases|pg_tablespace_location|pg_tablespace_size|" +
1175 <+=?|> "pg_terminate_backend|pg_timezone_abbrevs|pg_timezone_names|pg_total_relation_size|" +
1176 <+=?|> "pg_trigger_depth|pg_try_advisory_lock|pg_try_advisory_lock_shared|" +
1177 <+=?|> "pg_try_advisory_xact_lock|pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|" +
1178 <+=?|> "pg_ts_dict_is_visible|pg_ts_parser_is_visible|pg_ts_template_is_visible|" +
1179 <+=?|> "pg_type_is_visible|pg_typeof|pg_xlog_location_diff|pg_xlog_replay_pause|" +
1180 <+=?|> "pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|pi|plainto_tsquery|" +
1181 <+=?|> "plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|point|point_above|" +
1182 <+=?|> "point_add|point_below|point_distance|point_div|point_eq|point_horiz|point_in|point_left|" +
1183 <+=?|> "point_mul|point_ne|point_out|point_recv|point_right|point_send|point_sub|point_vert|" +
1184 <+=?|> "poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|poly_contained|" +
1185 <+=?|> "poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|poly_overbelow|" +
1186 <+=?|> "poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|poly_same|poly_send|" +
1187 <+=?|> "polygon|popen|position|positionjoinsel|positionsel|postgresql_fdw_validator|pow|power|" +
1188 <+=?|> "prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|prsd_start|pt_contained_circle|" +
1189 <+=?|> "pt_contained_poly|query_to_xml|query_to_xml_and_xmlschema|query_to_xmlschema|" +
1190 <+=?|> "querytree|quote_ident|quote_literal|quote_nullable|radians|radius|random|range_adjacent|" +
1191 <+=?|> "range_after|range_before|range_cmp|range_contained_by|range_contains|" +
1192 <+=?|> "range_contains_elem|range_eq|range_ge|range_gist_compress|range_gist_consistent|" +
1193 <+=?|> "range_gist_decompress|range_gist_penalty|range_gist_picksplit|range_gist_same|" +
1194 <+=?|> "range_gist_union|range_gt|range_in|range_intersect|range_le|range_lt|range_minus|" +
1195 <+=?|> "range_ne|range_out|range_overlaps|range_overleft|range_overright|range_recv|range_send|" +
1196 <+=?|> "range_typanalyze|range_union|rangesel|rank|record_eq|record_ge|record_gt|record_in|" +
1197 <+=?|> "record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|" +
1198 <+=?|> "regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|" +
1199 <+=?|> "regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|" +
1200 <+=?|> "regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|" +
1201 <+=?|> "regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|" +
1202 <+=?|> "regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|" +
1203 <+=?|> "regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|" +
1204 <+=?|> "regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|" +
1205 <+=?|> "regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|" +
1206 <+=?|> "reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|" +
1207 <+=?|> "reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|row_to_json|rpad|" +
1208 <+=?|> "rtrim|scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|" +
1209 <+=?|> "schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|" +
1210 <+=?|> "set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|" +
1211 <+=?|> "shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|" +
1212 <+=?|> "similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|" +
1213 <+=?|> "smgrout|spg_kd_choose|spg_kd_config|spg_kd_inner_consistent|spg_kd_picksplit|" +
1214 <+=?|> "spg_quad_choose|spg_quad_config|spg_quad_inner_consistent|spg_quad_leaf_consistent|" +
1215 <+=?|> "spg_quad_picksplit|spg_range_quad_choose|spg_range_quad_config|" +
1216 <+=?|> "spg_range_quad_inner_consistent|spg_range_quad_leaf_consistent|" +
1217 <+=?|> "spg_range_quad_picksplit|spg_text_choose|spg_text_config|spg_text_inner_consistent|" +
1218 <+=?|> "spg_text_leaf_consistent|spg_text_picksplit|spgbeginscan|spgbuild|spgbuildempty|" +
1219 <+=?|> "spgbulkdelete|spgcanreturn|spgcostestimate|spgendscan|spggetbitmap|spggettuple|" +
1220 <+=?|> "spginsert|spgmarkpos|spgoptions|spgrescan|spgrestrpos|spgvacuumcleanup|split_part|sqrt|" +
1221 <+=?|> "statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|string_agg_finalfn|" +
1222 <+=?|> "string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|" +
1223 <+=?|> "suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|" +
1224 <+=?|> "table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|" +
1225 <+=?|> "text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|" +
1226 <+=?|> "texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|" +
1227 <+=?|> "textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|" +
1228 <+=?|> "thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|" +
1229 <+=?|> "tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|" +
1230 <+=?|> "time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|" +
1231 <+=?|> "time_smaller|time_transform|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|" +
1232 <+=?|> "timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|" +
1233 <+=?|> "timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|" +
1234 <+=?|> "timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|" +
1235 <+=?|> "timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|" +
1236 <+=?|> "timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|" +
1237 <+=?|> "timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|" +
1238 <+=?|> "timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|" +
1239 <+=?|> "timestamp_sortsupport|timestamp_transform|timestamptypmodin|timestamptypmodout|" +
1240 <+=?|> "timestamptz_cmp|timestamptz_cmp_date|timestamptz_cmp_timestamp|timestamptz_eq|" +
1241 <+=?|> "timestamptz_eq_date|timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|" +
1242 <+=?|> "timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|" +
1243 <+=?|> "timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|" +
1244 <+=?|> "timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|" +
1245 <+=?|> "timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|" +
1246 <+=?|> "timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|" +
1247 <+=?|> "timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|" +
1248 <+=?|> "timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|" +
1249 <+=?|> "timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|" +
1250 <+=?|> "timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|" +
1251 <+=?|> "timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|" +
1252 <+=?|> "tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|" +
1253 <+=?|> "tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|" +
1254 <+=?|> "tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|" +
1255 <+=?|> "tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|" +
1256 <+=?|> "to_json|to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|" +
1257 <+=?|> "trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|" +
1258 <+=?|> "ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|" +
1259 <+=?|> "ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|" +
1260 <+=?|> "tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|" +
1261 <+=?|> "tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsrange|" +
1262 <+=?|> "tsrange_subdiff|tstzrange|tstzrange_subdiff|tsvector_cmp|tsvector_concat|tsvector_eq|" +
1263 <+=?|> "tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|tsvector_ne|tsvector_update_trigger|" +
1264 <+=?|> "tsvector_update_trigger_column|tsvectorin|tsvectorout|tsvectorrecv|tsvectorsend|" +
1265 <+=?|> "txid_current|txid_current_snapshot|txid_snapshot_in|txid_snapshot_out|" +
1266 <+=?|> "txid_snapshot_recv|txid_snapshot_send|txid_snapshot_xip|txid_snapshot_xmax|" +
1267 <+=?|> "txid_snapshot_xmin|txid_visible_in_snapshot|uhc_to_utf8|unique_key_recheck|unknownin|" +
1268 <+=?|> "unknownout|unknownrecv|unknownsend|unnest|upper|upper_inc|upper_inf|utf8_to_ascii|" +
1269 <+=?|> "utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|utf8_to_euc_kr|" +
1270 <+=?|> "utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|utf8_to_iso8859_1|" +
1271 <+=?|> "utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|utf8_to_sjis|" +
1272 <+=?|> "utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|uuid_le|" +
1273 <+=?|> "uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|varbit_out|" +
1274 <+=?|> "varbit_recv|varbit_send|varbit_transform|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|" +
1275 <+=?|> "varbitlt|varbitne|varbittypmodin|varbittypmodout|varchar_transform|varcharin|" +
1276 <+=?|> "varcharout|varcharrecv|varcharsend|varchartypmodin|varchartypmodout|variance|version|" +
1277 <+=?|> "void_in|void_out|void_recv|void_send|width|width_bucket|win1250_to_latin2|" +
1278 <+=?|> "win1250_to_mic|win1251_to_iso|win1251_to_koi8r|win1251_to_mic|win1251_to_win866|" +
1279 <+=?|> "win866_to_iso|win866_to_koi8r|win866_to_mic|win866_to_win1251|win_to_utf8|xideq|" +
1280 <+=?|> "xideqint4|xidin|xidout|xidrecv|xidsend|xml|xml_in|xml_is_well_formed|" +
1281 <+=?|> "xml_is_well_formed_content|xml_is_well_formed_document|xml_out|xml_recv|xml_send|" +
1282 <+=?|> "xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists"
1283 <+=?|> );
1284  
1285 <+=?|> var keywordMapper = this.createKeywordMapper({
1286 <+=?|> "support.function": builtinFunctions,
1287 <+=?|> "keyword": keywords
1288 <+=?|> }, "identifier", true);
1289  
1290  
1291 <+=?|> var sqlRules = [{
1292 <+=?|> token : "string", // single line string -- assume dollar strings if multi-line for now
1293 <+=?|> regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1294 <+=?|> }, {
1295 <+=?|> token : "variable.language", // pg identifier
1296 <+=?|> regex : '".*?"'
1297 <+=?|> }, {
1298 <+=?|> token : "constant.numeric", // float
1299 <+=?|> regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
1300 <+=?|> }, {
1301 <+=?|> token : keywordMapper,
1302 <+=?|> regex : "[a-zA-Z_][a-zA-Z0-9_$]*\\b" // TODO - Unicode in identifiers
1303 <+=?|> }, {
1304 <+=?|> token : "keyword.operator",
1305 <+=?|> regex : "!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|" +
1306 <+=?|> "\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||" +
1307 <+=?|> "\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|" +
1308 <+=?|> "~=|~>=~|~>~|~~|~~\\*"
1309 <+=?|> }, {
1310 <+=?|> token : "paren.lparen",
1311 <+=?|> regex : "[\\(]"
1312 <+=?|> }, {
1313 <+=?|> token : "paren.rparen",
1314 <+=?|> regex : "[\\)]"
1315 <+=?|> }, {
1316 <+=?|> token : "text",
1317 <+=?|> regex : "\\s+"
1318 <+=?|> }
1319 <+=?|> ];
1320  
1321  
1322 <+=?|> this.$rules = {
1323 <+=?|> "start" : [{
1324 <+=?|> token : "comment",
1325 <+=?|> regex : "--.*$"
1326 <+=?|> },
1327 <+=?|> DocCommentHighlightRules.getStartRule("doc-start"),
1328 <+=?|> {
1329 <+=?|> token : "comment", // multi-line comment
1330 <+=?|> regex : "\\/\\*",
1331 <+=?|> next : "comment"
1332 <+=?|> },{
1333 <+=?|> token : "keyword.statementBegin",
1334 <+=?|> regex : "^[a-zA-Z]+", // Could enumerate starting keywords but this allows things to work when new statements are added.
1335 <+=?|> next : "statement"
1336 <+=?|> },{
1337 <+=?|> token : "support.buildin", // psql directive
1338 <+=?|> regex : "^\\\\[\\S]+.*$"
1339 <+=?|> }
1340 <+=?|> ],
1341  
1342 <+=?|> "statement" : [{
1343 <+=?|> token : "comment",
1344 <+=?|> regex : "--.*$"
1345 <+=?|> }, {
1346 <+=?|> token : "comment", // multi-line comment
1347 <+=?|> regex : "\\/\\*",
1348 <+=?|> next : "commentStatement"
1349 <+=?|> }, {
1350 <+=?|> token : "statementEnd",
1351 <+=?|> regex : ";",
1352 <+=?|> next : "start"
1353 <+=?|> }, {
1354 <+=?|> token : "string",
1355 <+=?|> regex : "\\$perl\\$",
1356 <+=?|> next : "perl-start"
1357 <+=?|> }, {
1358 <+=?|> token : "string",
1359 <+=?|> regex : "\\$python\\$",
1360 <+=?|> next : "python-start"
1361 <+=?|> }, {
1362 <+=?|> token : "string",
1363 <+=?|> regex : "\\$json\\$",
1364 <+=?|> next : "json-start"
1365 <+=?|> }, {
1366 <+=?|> token : "string",
1367 <+=?|> regex : "\\$(js|javascript)\\$",
1368 <+=?|> next : "javascript-start"
1369 <+=?|> }, {
1370 <+=?|> token : "string",
1371 <+=?|> regex : "\\$[\\w_0-9]*\\$$", // dollar quote at the end of a line
1372 <+=?|> next : "dollarSql"
1373 <+=?|> }, {
1374 <+=?|> token : "string",
1375 <+=?|> regex : "\\$[\\w_0-9]*\\$",
1376 <+=?|> next : "dollarStatementString"
1377 <+=?|> }
1378 <+=?|> ].concat(sqlRules),
1379  
1380 <+=?|> "dollarSql" : [{
1381 <+=?|> token : "comment",
1382 <+=?|> regex : "--.*$"
1383 <+=?|> }, {
1384 <+=?|> token : "comment", // multi-line comment
1385 <+=?|> regex : "\\/\\*",
1386 <+=?|> next : "commentDollarSql"
1387 <+=?|> }, {
1388 <+=?|> token : "string", // end quoting with dollar at the start of a line
1389 <+=?|> regex : "^\\$[\\w_0-9]*\\$",
1390 <+=?|> next : "statement"
1391 <+=?|> }, {
1392 <+=?|> token : "string",
1393 <+=?|> regex : "\\$[\\w_0-9]*\\$",
1394 <+=?|> next : "dollarSqlString"
1395 <+=?|> }
1396 <+=?|> ].concat(sqlRules),
1397  
1398 <+=?|> "comment" : [{
1399 <+=?|> token : "comment", // closing comment
1400 <+=?|> regex : ".*?\\*\\/",
1401 <+=?|> next : "start"
1402 <+=?|> }, {
1403 <+=?|> token : "comment", // comment spanning whole line
1404 <+=?|> regex : ".+"
1405 <+=?|> }
1406 <+=?|> ],
1407  
1408 <+=?|> "commentStatement" : [{
1409 <+=?|> token : "comment", // closing comment
1410 <+=?|> regex : ".*?\\*\\/",
1411 <+=?|> next : "statement"
1412 <+=?|> }, {
1413 <+=?|> token : "comment", // comment spanning whole line
1414 <+=?|> regex : ".+"
1415 <+=?|> }
1416 <+=?|> ],
1417  
1418 <+=?|> "commentDollarSql" : [{
1419 <+=?|> token : "comment", // closing comment
1420 <+=?|> regex : ".*?\\*\\/",
1421 <+=?|> next : "dollarSql"
1422 <+=?|> }, {
1423 <+=?|> token : "comment", // comment spanning whole line
1424 <+=?|> regex : ".+"
1425 <+=?|> }
1426 <+=?|> ],
1427  
1428 <+=?|> "dollarStatementString" : [{
1429 <+=?|> token : "string", // closing dollarstring
1430 <+=?|> regex : ".*?\\$[\\w_0-9]*\\$",
1431 <+=?|> next : "statement"
1432 <+=?|> }, {
1433 <+=?|> token : "string", // dollarstring spanning whole line
1434 <+=?|> regex : ".+"
1435 <+=?|> }
1436 <+=?|> ],
1437  
1438 <+=?|> "dollarSqlString" : [{
1439 <+=?|> token : "string", // closing dollarstring
1440 <+=?|> regex : ".*?\\$[\\w_0-9]*\\$",
1441 <+=?|> next : "dollarSql"
1442 <+=?|> }, {
1443 <+=?|> token : "string", // dollarstring spanning whole line
1444 <+=?|> regex : ".+"
1445 <+=?|> }
1446 <+=?|> ]
1447 <+=?|> };
1448  
1449 <+=?|> this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]);
1450 <+=?|> this.embedRules(PerlHighlightRules, "perl-", [{token : "string", regex : "\\$perl\\$", next : "statement"}]);
1451 <+=?|> this.embedRules(PythonHighlightRules, "python-", [{token : "string", regex : "\\$python\\$", next : "statement"}]);
1452 <+=?|> this.embedRules(JsonHighlightRules, "json-", [{token : "string", regex : "\\$json\\$", next : "statement"}]);
1453 <+=?|> this.embedRules(JavaScriptHighlightRules, "javascript-", [{token : "string", regex : "\\$(js|javascript)\\$", next : "statement"}]);
1454 <+=?|>};
1455  
1456 <+=?|>oop.inherits(PgsqlHighlightRules, TextHighlightRules);
1457  
1458 <+=?|>exports.PgsqlHighlightRules = PgsqlHighlightRules;
1459 <+=?|>});
1460  
1461 <+=?|>ace.define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pgsql_highlight_rules"], function(require, exports, module) {
1462  
1463 <+=?|>var oop = require("../lib/oop");
1464 <+=?|>var TextMode = require("../mode/text").Mode;
1465 <+=?|>var PgsqlHighlightRules = require("./pgsql_highlight_rules").PgsqlHighlightRules;
1466  
1467 <+=?|>var Mode = function() {
1468 <+=?|> this.HighlightRules = PgsqlHighlightRules;
1469 <+=?|> this.$behaviour = this.$defaultBehaviour;
1470 <+=?|>};
1471 <+=?|>oop.inherits(Mode, TextMode);
1472  
1473 <+=?|>(function() {
1474 <+=?|> this.lineCommentStart = "--";
1475 <+=?|> this.blockComment = {start: "/*", end: "*/"};
1476  
1477 <+=?|> this.getNextLineIndent = function(state, line, tab) {
1478 <+=?|> if (state == "start" || state == "keyword.statementEnd") {
1479 <+=?|> return "";
1480 <+=?|> } else {
1481 <+=?|> return this.$getIndent(line); // Keep whatever indent the previous line has
1482 <+=?|> }
1483 <+=?|> };
1484  
1485 <+=?|> this.$id = "ace/mode/pgsql";
1486 <+=?|>}).call(Mode.prototype);
1487  
1488 <+=?|>exports.Mode = Mode;
1489 <+=?|>});