5d605211079d045169a9ac70f8aa0356.js 85 KB

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