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