mode-pgsql.js 85 KB

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