mode-pgsql-uncompressed.js 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * The Original Code is Ajax.org Code Editor (ACE).
  3. *
  4. * Contributor(s):
  5. * Jonathan Camile <jonathan.camile AT gmail DOT com>
  6. *
  7. * Alternatively, the contents of this file may be used under the terms of
  8. * either the GNU General Public License Version 2 or later (the "GPL"), or
  9. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  10. * in which case the provisions of the GPL or the LGPL are applicable instead
  11. * of those above. If you wish to allow use of your version of this file only
  12. * under the terms of either the GPL or the LGPL, and not to allow others to
  13. * use your version of this file under the terms of the MPL, indicate your
  14. * decision by deleting the provisions above and replace them with the notice
  15. * and other provisions required by the GPL or the LGPL. If you do not delete
  16. * the provisions above, a recipient may use your version of this file under
  17. * the terms of any one of the MPL, the GPL or the LGPL.
  18. *
  19. * ***** END LICENSE BLOCK ***** */
  20. define('ace/mode/pgsql', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/pgsql_highlight_rules', 'ace/range'], function(require, exports, module) {
  21. var oop = require("ace/lib/oop");
  22. var TextMode = require("ace/mode/text").Mode;
  23. var Tokenizer = require("ace/tokenizer").Tokenizer;
  24. var PgsqlHighlightRules = require("ace/mode/pgsql_highlight_rules").PgsqlHighlightRules;
  25. var Range = require("ace/range").Range;
  26. // var EditSession = require("ace/edit_session").EditSession;
  27. var Mode = function() {
  28. this.$tokenizer = new Tokenizer(new PgsqlHighlightRules().getRules());
  29. };
  30. oop.inherits(Mode, TextMode);
  31. (function() {
  32. this.toggleCommentLines = function(state, doc, startRow, endRow) {
  33. var outdent = true;
  34. // var outentedRows = [];
  35. var re = /^(\s*)--/;
  36. for (var i=startRow; i<= endRow; i++) {
  37. if (!re.test(doc.getLine(i))) {
  38. outdent = false;
  39. break;
  40. }
  41. }
  42. if (outdent) {
  43. var deleteRange = new Range(0, 0, 0, 0);
  44. for (var i=startRow; i<= endRow; i++)
  45. {
  46. var line = doc.getLine(i);
  47. var m = line.match(re);
  48. deleteRange.start.row = i;
  49. deleteRange.end.row = i;
  50. deleteRange.end.column = m[0].length;
  51. doc.replace(deleteRange, m[1]);
  52. }
  53. }
  54. else {
  55. doc.indentRows(startRow, endRow, "--");
  56. }
  57. };
  58. this.getNextLineIndent = function(state, line, tab) {
  59. if (state == "start" || state == "keyword.statementEnd") {
  60. return "";
  61. } else {
  62. return this.$getIndent(line); // Keep whatever indent the previous line has
  63. }
  64. }
  65. }).call(Mode.prototype);
  66. exports.Mode = Mode;
  67. });
  68. /* ***** BEGIN LICENSE BLOCK *****
  69. * The Original Code is Ajax.org Code Editor (ACE).
  70. *
  71. * Contributor(s):
  72. * John DeSoi, Ph.D. <desoi AT pgedit DOT com>
  73. *
  74. * Alternatively, the contents of this file may be used under the terms of
  75. * either the GNU General Public License Version 2 or later (the "GPL"), or
  76. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  77. * in which case the provisions of the GPL or the LGPL are applicable instead
  78. * of those above. If you wish to allow use of your version of this file only
  79. * under the terms of either the GPL or the LGPL, and not to allow others to
  80. * use your version of this file under the terms of the MPL, indicate your
  81. * decision by deleting the provisions above and replace them with the notice
  82. * and other provisions required by the GPL or the LGPL. If you do not delete
  83. * the provisions above, a recipient may use your version of this file under
  84. * the terms of any one of the MPL, the GPL or the LGPL.
  85. *
  86. * ***** END LICENSE BLOCK *****
  87. *
  88. */
  89. 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'], function(require, exports, module) {
  90. var oop = require("ace/lib/oop");
  91. var lang = require("ace/lib/lang");
  92. var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
  93. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  94. // Supporting perl and python for now -- both in pg core and ace
  95. var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
  96. var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
  97. var PgsqlHighlightRules = function() {
  98. // Keywords, functions, operators last updated for pg 9.1.
  99. var keywords = lang.arrayToMap(
  100. ("abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|" +
  101. "analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|array|as|asc|assertion|" +
  102. "assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|" +
  103. "binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|" +
  104. "catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|" +
  105. "cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|" +
  106. "configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|" +
  107. "create|cross|cstring|csv|current|current_catalog|current_date|current_role|" +
  108. "current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|" +
  109. "date|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|" +
  110. "delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|" +
  111. "drop|each|else|enable|encoding|encrypted|end|enum|escape|except|exclude|excluding|exclusive|" +
  112. "execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|first|" +
  113. "float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|" +
  114. "global|grant|granted|greatest|group|gtsvector|handler|having|header|hold|hour|identity|if|" +
  115. "ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inet|inherit|" +
  116. "inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|" +
  117. "int4|int8|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|key|label|" +
  118. "language|language_handler|large|last|lc_collate|lc_ctype|leading|least|left|level|like|" +
  119. "limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|mapping|" +
  120. "match|maxvalue|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|next|no|" +
  121. "none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|object|of|off|offset|oid|oids|" +
  122. "oidvector|on|only|opaque|operator|option|options|or|order|out|outer|over|overlaps|overlay|" +
  123. "owned|owner|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|" +
  124. "pg_authid|pg_class|pg_database|pg_node_tree|pg_proc|pg_type|placing|plans|point|polygon|" +
  125. "position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|" +
  126. "procedural|procedure|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|" +
  127. "references|regclass|regconfig|regdictionary|regoper|regoperator|regproc|regprocedure|" +
  128. "regtype|reindex|relative|release|reltime|rename|repeatable|replace|replica|reset|restart|" +
  129. "restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|" +
  130. "search|second|security|select|sequence|sequences|serializable|server|session|session_user|" +
  131. "set|setof|share|show|similar|simple|smallint|smgr|some|stable|standalone|start|statement|" +
  132. "statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|" +
  133. "tablespace|temp|template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|" +
  134. "tinterval|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsvector|" +
  135. "txid_snapshot|type|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|" +
  136. "unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|" +
  137. "varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|" +
  138. "with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|" +
  139. "xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone").split("|")
  140. );
  141. var builtinFunctions = lang.arrayToMap(
  142. ("RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|" +
  143. "RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|" +
  144. "RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|" +
  145. "RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|" +
  146. "abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|aclexplode|aclinsert|" +
  147. "aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|anyarray_in|anyarray_out|" +
  148. "anyarray_recv|anyarray_send|anyelement_in|anyelement_out|anyenum_in|anyenum_out|" +
  149. "anynonarray_in|anynonarray_out|anytextcat|area|areajoinsel|areasel|array_agg|" +
  150. "array_agg_finalfn|array_agg_transfn|array_append|array_cat|array_dims|array_eq|" +
  151. "array_fill|array_ge|array_gt|array_in|array_larger|array_le|array_length|array_lower|" +
  152. "array_lt|array_ndims|array_ne|array_out|array_prepend|array_recv|array_send|" +
  153. "array_smaller|array_to_string|array_upper|arraycontained|arraycontains|arrayoverlap|" +
  154. "ascii|ascii_to_mic|ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|" +
  155. "big5_to_utf8|bit_and|bit_in|bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|" +
  156. "bitcmp|biteq|bitge|bitgt|bitle|bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|" +
  157. "bittypmodin|bittypmodout|bitxor|bool|bool_and|bool_or|booland_statefunc|booleq|boolge|" +
  158. "boolgt|boolin|boolle|boollt|boolne|boolor_statefunc|boolout|boolrecv|boolsend|box|" +
  159. "box_above|box_above_eq|box_add|box_below|box_below_eq|box_center|box_contain|" +
  160. "box_contain_pt|box_contained|box_distance|box_div|box_eq|box_ge|box_gt|box_in|" +
  161. "box_intersect|box_le|box_left|box_lt|box_mul|box_out|box_overabove|box_overbelow|" +
  162. "box_overlap|box_overleft|box_overright|box_recv|box_right|box_same|box_send|box_sub|" +
  163. "bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|bpchar_pattern_le|" +
  164. "bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|bpchargt|bpchariclike|" +
  165. "bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|bpcharlike|bpcharlt|" +
  166. "bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|bpcharregexne|bpcharsend|" +
  167. "bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|btarraycmp|btbeginscan|btboolcmp|" +
  168. "btbpchar_pattern_cmp|btbuild|btbuildempty|btbulkdelete|btcharcmp|btcostestimate|" +
  169. "btendscan|btfloat48cmp|btfloat4cmp|btfloat84cmp|btfloat8cmp|btgetbitmap|btgettuple|" +
  170. "btinsert|btint24cmp|btint28cmp|btint2cmp|btint42cmp|btint48cmp|btint4cmp|btint82cmp|" +
  171. "btint84cmp|btint8cmp|btmarkpos|btnamecmp|btoidcmp|btoidvectorcmp|btoptions|btrecordcmp|" +
  172. "btreltimecmp|btrescan|btrestrpos|btrim|bttext_pattern_cmp|bttextcmp|bttidcmp|" +
  173. "bttintervalcmp|btvacuumcleanup|byteacat|byteacmp|byteaeq|byteage|byteagt|byteain|byteale|" +
  174. "bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|cash_cmp|cash_div_cash|" +
  175. "cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|cash_ge|cash_gt|cash_in|" +
  176. "cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|cash_mul_int2|cash_mul_int4|cash_ne|" +
  177. "cash_out|cash_pl|cash_recv|cash_send|cash_words|cashlarger|cashsmaller|cbrt|ceil|ceiling|" +
  178. "center|char|char_length|character_length|chareq|charge|chargt|charin|charle|charlt|charne|" +
  179. "charout|charrecv|charsend|chr|cideq|cidin|cidout|cidr|cidr_in|cidr_out|cidr_recv|cidr_send|" +
  180. "cidrecv|cidsend|circle|circle_above|circle_add_pt|circle_below|circle_center|" +
  181. "circle_contain|circle_contain_pt|circle_contained|circle_distance|circle_div_pt|" +
  182. "circle_eq|circle_ge|circle_gt|circle_in|circle_le|circle_left|circle_lt|circle_mul_pt|" +
  183. "circle_ne|circle_out|circle_overabove|circle_overbelow|circle_overlap|circle_overleft|" +
  184. "circle_overright|circle_recv|circle_right|circle_same|circle_send|circle_sub_pt|" +
  185. "clock_timestamp|close_lb|close_ls|close_lseg|close_pb|close_pl|close_ps|close_sb|" +
  186. "close_sl|col_description|concat|concat_ws|contjoinsel|contsel|convert|convert_from|" +
  187. "convert_to|corr|cos|cot|count|covar_pop|covar_samp|cstring_in|cstring_out|cstring_recv|" +
  188. "cstring_send|cume_dist|current_database|current_query|current_schema|current_schemas|" +
  189. "current_setting|current_user|currtid|currtid2|currval|cursor_to_xml|" +
  190. "cursor_to_xmlschema|database_to_xml|database_to_xml_and_xmlschema|" +
  191. "database_to_xmlschema|date|date_cmp|date_cmp_timestamp|date_cmp_timestamptz|date_eq|" +
  192. "date_eq_timestamp|date_eq_timestamptz|date_ge|date_ge_timestamp|date_ge_timestamptz|" +
  193. "date_gt|date_gt_timestamp|date_gt_timestamptz|date_in|date_larger|date_le|" +
  194. "date_le_timestamp|date_le_timestamptz|date_lt|date_lt_timestamp|date_lt_timestamptz|" +
  195. "date_mi|date_mi_interval|date_mii|date_ne|date_ne_timestamp|date_ne_timestamptz|" +
  196. "date_out|date_part|date_pl_interval|date_pli|date_recv|date_send|date_smaller|" +
  197. "date_trunc|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|dense_rank|dexp|diagonal|" +
  198. "diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|dist_pc|dist_pl|" +
  199. "dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|dpow|dround|" +
  200. "dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|dsynonym_init|" +
  201. "dsynonym_lexize|dtrunc|encode|enum_cmp|enum_eq|enum_first|enum_ge|enum_gt|enum_in|" +
  202. "enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|enum_range|enum_recv|enum_send|" +
  203. "enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|euc_cn_to_utf8|" +
  204. "euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|euc_jp_to_sjis|" +
  205. "euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|euc_tw_to_mic|" +
  206. "euc_tw_to_utf8|every|exp|factorial|family|fdw_handler_in|fdw_handler_out|first_value|" +
  207. "float4|float48div|float48eq|float48ge|float48gt|float48le|float48lt|float48mi|float48mul|" +
  208. "float48ne|float48pl|float4_accum|float4abs|float4div|float4eq|float4ge|float4gt|float4in|" +
  209. "float4larger|float4le|float4lt|float4mi|float4mul|float4ne|float4out|float4pl|float4recv|" +
  210. "float4send|float4smaller|float4um|float4up|float8|float84div|float84eq|float84ge|" +
  211. "float84gt|float84le|float84lt|float84mi|float84mul|float84ne|float84pl|float8_accum|" +
  212. "float8_avg|float8_corr|float8_covar_pop|float8_covar_samp|float8_regr_accum|" +
  213. "float8_regr_avgx|float8_regr_avgy|float8_regr_intercept|float8_regr_r2|" +
  214. "float8_regr_slope|float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|" +
  215. "float8_stddev_samp|float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|" +
  216. "float8ge|float8gt|float8in|float8larger|float8le|float8lt|float8mi|float8mul|float8ne|" +
  217. "float8out|float8pl|float8recv|float8send|float8smaller|float8um|float8up|floor|" +
  218. "flt4_mul_cash|flt8_mul_cash|fmgr_c_validator|fmgr_internal_validator|" +
  219. "fmgr_sql_validator|format|format_type|gb18030_to_utf8|gbk_to_utf8|generate_series|" +
  220. "generate_subscripts|get_bit|get_byte|get_current_ts_config|getdatabaseencoding|" +
  221. "getpgusername|gin_cmp_prefix|gin_cmp_tslexeme|gin_extract_tsquery|" +
  222. "gin_extract_tsvector|gin_tsquery_consistent|ginarrayconsistent|ginarrayextract|" +
  223. "ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|gincostestimate|ginendscan|" +
  224. "gingetbitmap|gininsert|ginmarkpos|ginoptions|ginqueryarrayextract|ginrescan|" +
  225. "ginrestrpos|ginvacuumcleanup|gist_box_compress|gist_box_consistent|" +
  226. "gist_box_decompress|gist_box_penalty|gist_box_picksplit|gist_box_same|gist_box_union|" +
  227. "gist_circle_compress|gist_circle_consistent|gist_point_compress|" +
  228. "gist_point_consistent|gist_point_distance|gist_poly_compress|gist_poly_consistent|" +
  229. "gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|gistcostestimate|gistendscan|" +
  230. "gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|gistoptions|gistrescan|gistrestrpos|" +
  231. "gistvacuumcleanup|gtsquery_compress|gtsquery_consistent|gtsquery_decompress|" +
  232. "gtsquery_penalty|gtsquery_picksplit|gtsquery_same|gtsquery_union|gtsvector_compress|" +
  233. "gtsvector_consistent|gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|" +
  234. "gtsvector_same|gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|" +
  235. "has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|" +
  236. "has_function_privilege|has_language_privilege|has_schema_privilege|" +
  237. "has_sequence_privilege|has_server_privilege|has_table_privilege|" +
  238. "has_tablespace_privilege|hash_aclitem|hash_array|hash_numeric|hashbeginscan|" +
  239. "hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|hashcostestimate|" +
  240. "hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|hashinet|" +
  241. "hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|hashname|" +
  242. "hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|hashvacuumcleanup|" +
  243. "hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|icnlikejoinsel|icnlikesel|" +
  244. "icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|inet_client_addr|" +
  245. "inet_client_port|inet_in|inet_out|inet_recv|inet_send|inet_server_addr|" +
  246. "inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|initcap|int2|int24div|" +
  247. "int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|int24pl|int28div|int28eq|" +
  248. "int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|int2_accum|" +
  249. "int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|int2gt|int2in|" +
  250. "int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|int2pl|" +
  251. "int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|int2vectorin|" +
  252. "int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|int42ge|" +
  253. "int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|int48gt|" +
  254. "int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|int4_mul_cash|" +
  255. "int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|int4larger|int4le|" +
  256. "int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|int4recv|int4send|" +
  257. "int4shl|int4shr|int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|" +
  258. "int82le|int82lt|int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|" +
  259. "int84lt|int84mi|int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|" +
  260. "int8abs|int8and|int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|" +
  261. "int8inc_float8_float8|int8larger|int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|" +
  262. "int8or|int8out|int8pl|int8pl_inet|int8recv|int8send|int8shl|int8shr|int8smaller|int8um|" +
  263. "int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|internal_out|" +
  264. "interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|interval_ge|" +
  265. "interval_gt|interval_hash|interval_in|interval_larger|interval_le|interval_lt|" +
  266. "interval_mi|interval_mul|interval_ne|interval_out|interval_pl|interval_pl_date|" +
  267. "interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|interval_pl_timetz|" +
  268. "interval_recv|interval_send|interval_smaller|interval_um|intervaltypmodin|" +
  269. "intervaltypmodout|intinterval|isclosed|isfinite|ishorizontal|iso8859_1_to_utf8|" +
  270. "iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|iso_to_win866|isopen|isparallel|" +
  271. "isperp|isvertical|johab_to_utf8|justify_days|justify_hours|justify_interval|" +
  272. "koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|koi8r_to_win1251|koi8r_to_win866|" +
  273. "koi8u_to_utf8|lag|language_handler_in|language_handler_out|last_value|lastval|" +
  274. "latin1_to_mic|latin2_to_mic|latin2_to_win1250|latin3_to_mic|latin4_to_mic|lead|left|" +
  275. "length|like|like_escape|likejoinsel|likesel|line|line_distance|line_eq|line_horizontal|" +
  276. "line_in|line_interpt|line_intersect|line_out|line_parallel|line_perp|line_recv|" +
  277. "line_send|line_vertical|ln|lo_close|lo_creat|lo_create|lo_export|lo_import|lo_lseek|" +
  278. "lo_open|lo_tell|lo_truncate|lo_unlink|log|loread|lower|lowrite|lpad|lseg|lseg_center|" +
  279. "lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|" +
  280. "lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|" +
  281. "lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_cmp|macaddr_eq|macaddr_ge|macaddr_gt|" +
  282. "macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_out|macaddr_recv|macaddr_send|" +
  283. "makeaclitem|masklen|max|md5|mic_to_ascii|mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|" +
  284. "mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|mic_to_koi8r|mic_to_latin1|mic_to_latin2|" +
  285. "mic_to_latin3|mic_to_latin4|mic_to_sjis|mic_to_win1250|mic_to_win1251|mic_to_win866|" +
  286. "min|mktinterval|mod|money|mul_d_interval|name|nameeq|namege|namegt|nameiclike|nameicnlike|" +
  287. "nameicregexeq|nameicregexne|namein|namele|namelike|namelt|namene|namenlike|nameout|" +
  288. "namerecv|nameregexeq|nameregexne|namesend|neqjoinsel|neqsel|netmask|network|network_cmp|" +
  289. "network_eq|network_ge|network_gt|network_le|network_lt|network_ne|network_sub|" +
  290. "network_subeq|network_sup|network_supeq|nextval|nlikejoinsel|nlikesel|notlike|now|" +
  291. "npoints|nth_value|ntile|numeric_abs|numeric_accum|numeric_add|numeric_avg|" +
  292. "numeric_avg_accum|numeric_cmp|numeric_div|numeric_div_trunc|numeric_eq|numeric_exp|" +
  293. "numeric_fac|numeric_ge|numeric_gt|numeric_in|numeric_inc|numeric_larger|numeric_le|" +
  294. "numeric_ln|numeric_log|numeric_lt|numeric_mod|numeric_mul|numeric_ne|numeric_out|" +
  295. "numeric_power|numeric_recv|numeric_send|numeric_smaller|numeric_sqrt|" +
  296. "numeric_stddev_pop|numeric_stddev_samp|numeric_sub|numeric_uminus|numeric_uplus|" +
  297. "numeric_var_pop|numeric_var_samp|numerictypmodin|numerictypmodout|numnode|" +
  298. "obj_description|octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|" +
  299. "oidrecv|oidsend|oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|" +
  300. "oidvectorlt|oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|" +
  301. "on_pl|on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|" +
  302. "path_add_pt|path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|" +
  303. "path_length|path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|" +
  304. "path_out|path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|" +
  305. "pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|" +
  306. "pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|" +
  307. "pg_available_extension_versions|pg_available_extensions|pg_backend_pid|" +
  308. "pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|pg_collation_is_visible|" +
  309. "pg_column_size|pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|" +
  310. "pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|" +
  311. "pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|" +
  312. "pg_extension_config_dump|pg_extension_update_paths|pg_function_is_visible|" +
  313. "pg_get_constraintdef|pg_get_expr|pg_get_function_arguments|" +
  314. "pg_get_function_identity_arguments|pg_get_function_result|pg_get_functiondef|" +
  315. "pg_get_indexdef|pg_get_keywords|pg_get_ruledef|pg_get_serial_sequence|" +
  316. "pg_get_triggerdef|pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_indexes_size|" +
  317. "pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|" +
  318. "pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|" +
  319. "pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|" +
  320. "pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|" +
  321. "pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|" +
  322. "pg_options_to_table|pg_postmaster_start_time|pg_prepared_statement|pg_prepared_xact|" +
  323. "pg_read_binary_file|pg_read_file|pg_relation_filenode|pg_relation_filepath|" +
  324. "pg_relation_size|pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|" +
  325. "pg_show_all_settings|pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|" +
  326. "pg_stat_file|pg_stat_get_activity|pg_stat_get_analyze_count|" +
  327. "pg_stat_get_autoanalyze_count|pg_stat_get_autovacuum_count|" +
  328. "pg_stat_get_backend_activity|pg_stat_get_backend_activity_start|" +
  329. "pg_stat_get_backend_client_addr|pg_stat_get_backend_client_port|" +
  330. "pg_stat_get_backend_dbid|pg_stat_get_backend_idset|pg_stat_get_backend_pid|" +
  331. "pg_stat_get_backend_start|pg_stat_get_backend_userid|pg_stat_get_backend_waiting|" +
  332. "pg_stat_get_backend_xact_start|pg_stat_get_bgwriter_buf_written_checkpoints|" +
  333. "pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|" +
  334. "pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|" +
  335. "pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|" +
  336. "pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|" +
  337. "pg_stat_get_buf_written_backend|pg_stat_get_db_blocks_fetched|" +
  338. "pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|" +
  339. "pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|" +
  340. "pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|" +
  341. "pg_stat_get_db_conflict_tablespace|pg_stat_get_db_numbackends|" +
  342. "pg_stat_get_db_stat_reset_time|pg_stat_get_db_tuples_deleted|" +
  343. "pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|" +
  344. "pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|" +
  345. "pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|" +
  346. "pg_stat_get_function_calls|pg_stat_get_function_self_time|" +
  347. "pg_stat_get_function_time|pg_stat_get_last_analyze_time|" +
  348. "pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|" +
  349. "pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|" +
  350. "pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|" +
  351. "pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|" +
  352. "pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|" +
  353. "pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|" +
  354. "pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|" +
  355. "pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_time|" +
  356. "pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|" +
  357. "pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|" +
  358. "pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|" +
  359. "pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|" +
  360. "pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|" +
  361. "pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|" +
  362. "pg_tablespace_databases|pg_tablespace_size|pg_terminate_backend|pg_timezone_abbrevs|" +
  363. "pg_timezone_names|pg_total_relation_size|pg_try_advisory_lock|" +
  364. "pg_try_advisory_lock_shared|pg_try_advisory_xact_lock|" +
  365. "pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|pg_ts_dict_is_visible|" +
  366. "pg_ts_parser_is_visible|pg_ts_template_is_visible|pg_type_is_visible|pg_typeof|" +
  367. "pg_xlog_replay_pause|pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|" +
  368. "pi|plainto_tsquery|plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|" +
  369. "point|point_above|point_add|point_below|point_distance|point_div|point_eq|point_horiz|" +
  370. "point_in|point_left|point_mul|point_ne|point_out|point_recv|point_right|point_send|" +
  371. "point_sub|point_vert|poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|" +
  372. "poly_contained|poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|" +
  373. "poly_overbelow|poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|" +
  374. "poly_same|poly_send|polygon|popen|position|positionjoinsel|positionsel|" +
  375. "postgresql_fdw_validator|pow|power|prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|" +
  376. "prsd_start|pt_contained_circle|pt_contained_poly|query_to_xml|" +
  377. "query_to_xml_and_xmlschema|query_to_xmlschema|querytree|quote_ident|quote_literal|" +
  378. "quote_nullable|radians|radius|random|rank|record_eq|record_ge|record_gt|record_in|" +
  379. "record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|" +
  380. "regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|" +
  381. "regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|" +
  382. "regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|" +
  383. "regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|" +
  384. "regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|" +
  385. "regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|" +
  386. "regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|" +
  387. "regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|" +
  388. "reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|" +
  389. "reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|rpad|rtrim|" +
  390. "scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|" +
  391. "schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|" +
  392. "set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|" +
  393. "shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|" +
  394. "similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|" +
  395. "smgrout|split_part|sqrt|statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|" +
  396. "string_agg_finalfn|string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|" +
  397. "suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|" +
  398. "table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|" +
  399. "text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|" +
  400. "texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|" +
  401. "textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|" +
  402. "thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|" +
  403. "tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|" +
  404. "time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|" +
  405. "time_smaller|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|" +
  406. "timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|" +
  407. "timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|" +
  408. "timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|" +
  409. "timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|" +
  410. "timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|" +
  411. "timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|" +
  412. "timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|" +
  413. "timestamptypmodin|timestamptypmodout|timestamptz_cmp|timestamptz_cmp_date|" +
  414. "timestamptz_cmp_timestamp|timestamptz_eq|timestamptz_eq_date|" +
  415. "timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|" +
  416. "timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|" +
  417. "timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|" +
  418. "timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|" +
  419. "timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|" +
  420. "timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|" +
  421. "timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|" +
  422. "timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|" +
  423. "timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|" +
  424. "timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|" +
  425. "timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|" +
  426. "tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|" +
  427. "tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|" +
  428. "tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|" +
  429. "tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|" +
  430. "to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|" +
  431. "trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|" +
  432. "ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|" +
  433. "ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|" +
  434. "tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|" +
  435. "tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsvector_cmp|" +
  436. "tsvector_concat|tsvector_eq|tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|" +
  437. "tsvector_ne|tsvector_update_trigger|tsvector_update_trigger_column|tsvectorin|" +
  438. "tsvectorout|tsvectorrecv|tsvectorsend|txid_current|txid_current_snapshot|" +
  439. "txid_snapshot_in|txid_snapshot_out|txid_snapshot_recv|txid_snapshot_send|" +
  440. "txid_snapshot_xip|txid_snapshot_xmax|txid_snapshot_xmin|txid_visible_in_snapshot|" +
  441. "uhc_to_utf8|unique_key_recheck|unknownin|unknownout|unknownrecv|unknownsend|unnest|" +
  442. "upper|utf8_to_ascii|utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|" +
  443. "utf8_to_euc_kr|utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|" +
  444. "utf8_to_iso8859_1|utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|" +
  445. "utf8_to_sjis|utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|" +
  446. "uuid_le|uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|" +
  447. "varbit_out|varbit_recv|varbit_send|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|" +
  448. "varbitlt|varbitne|varbittypmodin|varbittypmodout|varcharin|varcharout|varcharrecv|" +
  449. "varcharsend|varchartypmodin|varchartypmodout|variance|version|void_in|void_out|" +
  450. "void_recv|void_send|width|width_bucket|win1250_to_latin2|win1250_to_mic|win1251_to_iso|" +
  451. "win1251_to_koi8r|win1251_to_mic|win1251_to_win866|win866_to_iso|win866_to_koi8r|" +
  452. "win866_to_mic|win866_to_win1251|win_to_utf8|xideq|xideqint4|xidin|xidout|xidrecv|xidsend|" +
  453. "xml|xml_in|xml_is_well_formed|xml_is_well_formed_content|xml_is_well_formed_document|" +
  454. "xml_out|xml_recv|xml_send|xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|" +
  455. "xpath_exists").split("|")
  456. );
  457. var sqlRules = [
  458. {
  459. token : "string", // single line string -- assume dollar strings if multi-line for now
  460. regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
  461. }, {
  462. token : "variable.language", // pg identifier
  463. regex : '".*?"'
  464. }, {
  465. token : "constant.numeric", // float
  466. regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
  467. }, {
  468. token : function(value) {
  469. value = value.toLowerCase();
  470. if (keywords.hasOwnProperty(value)) {
  471. return "keyword";
  472. } else if (builtinFunctions.hasOwnProperty(value)) {
  473. return "support.function";
  474. } else {
  475. return "identifier";
  476. }
  477. },
  478. regex : "[a-zA-Z_][a-zA-Z0-9_$]*\\b" // TODO - Unicode in identifiers
  479. }, {
  480. token : "keyword.operator",
  481. regex : "!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|" +
  482. "\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||" +
  483. "\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|" +
  484. "~=|~>=~|~>~|~~|~~\\*"
  485. }, {
  486. token : "lparen.paren",
  487. regex : "[\\(]"
  488. }, {
  489. token : "paren.rparen",
  490. regex : "[\\)]"
  491. }, {
  492. token : "text",
  493. regex : "\\s+"
  494. }
  495. ];
  496. this.$rules = {
  497. "start" : [
  498. {
  499. token : "comment",
  500. regex : "--.*$"
  501. },
  502. new DocCommentHighlightRules().getStartRule("doc-start"),
  503. {
  504. token : "comment", // multi-line comment
  505. merge : true,
  506. regex : "\\/\\*",
  507. next : "comment"
  508. },{
  509. token : "keyword.statementBegin",
  510. regex : "^[a-zA-Z]+", // Could enumerate starting keywords but this allows things to work when new statements are added.
  511. next : "statement"
  512. },{
  513. token : "support.buildin", // psql directive
  514. regex : "^\\\\[\\S]+.*$"
  515. }
  516. ],
  517. "statement" : [
  518. {
  519. token : "comment",
  520. regex : "--.*$"
  521. }, {
  522. token : "comment", // multi-line comment
  523. merge : true,
  524. regex : "\\/\\*",
  525. next : "commentStatement"
  526. }, {
  527. token : "statementEnd",
  528. regex : ";",
  529. next : "start"
  530. }, {
  531. token : "string", // perl, python, tcl are in the pg default dist (no tcl highlighter)
  532. regex : "\\$perl\\$",
  533. next : "perl-start"
  534. }, {
  535. token : "string",
  536. regex : "\\$python\\$",
  537. next : "python-start"
  538. },{
  539. token : "string",
  540. regex : "\\$[\\w_0-9]*\\$$", // dollar quote at the end of a line
  541. next : "dollarSql"
  542. }, {
  543. token : "string",
  544. regex : "\\$[\\w_0-9]*\\$",
  545. next : "dollarStatementString"
  546. }
  547. ].concat(sqlRules),
  548. "dollarSql" : [
  549. {
  550. token : "comment",
  551. regex : "--.*$"
  552. }, {
  553. token : "comment", // multi-line comment
  554. merge : true,
  555. regex : "\\/\\*",
  556. next : "commentDollarSql"
  557. }, {
  558. token : "string", // end quoting with dollar at the start of a line
  559. regex : "^\\$[\\w_0-9]*\\$",
  560. next : "statement"
  561. }, {
  562. token : "string",
  563. regex : "\\$[\\w_0-9]*\\$",
  564. next : "dollarSqlString"
  565. }
  566. ].concat(sqlRules),
  567. "comment" : [
  568. {
  569. token : "comment", // closing comment
  570. regex : ".*?\\*\\/",
  571. next : "start"
  572. }, {
  573. token : "comment", // comment spanning whole line
  574. merge : true,
  575. regex : ".+"
  576. }
  577. ],
  578. "commentStatement" : [
  579. {
  580. token : "comment", // closing comment
  581. regex : ".*?\\*\\/",
  582. next : "statement"
  583. }, {
  584. token : "comment", // comment spanning whole line
  585. merge : true,
  586. regex : ".+"
  587. }
  588. ],
  589. "commentDollarSql" : [
  590. {
  591. token : "comment", // closing comment
  592. regex : ".*?\\*\\/",
  593. next : "dollarSql"
  594. }, {
  595. token : "comment", // comment spanning whole line
  596. merge : true,
  597. regex : ".+"
  598. }
  599. ],
  600. "dollarStatementString" : [
  601. {
  602. token : "string", // closing dollarstring
  603. regex : ".*?\\$[\\w_0-9]*\\$",
  604. next : "statement"
  605. }, {
  606. token : "string", // dollarstring spanning whole line
  607. merge : true,
  608. regex : ".+"
  609. }
  610. ],
  611. "dollarSqlString" : [
  612. {
  613. token : "string", // closing dollarstring
  614. regex : ".*?\\$[\\w_0-9]*\\$",
  615. next : "dollarSql"
  616. }, {
  617. token : "string", // dollarstring spanning whole line
  618. merge : true,
  619. regex : ".+"
  620. }
  621. ]
  622. };
  623. this.embedRules(DocCommentHighlightRules, "doc-", [ new DocCommentHighlightRules().getEndRule("start") ]);
  624. this.embedRules(PerlHighlightRules, "perl-", [{token : "string", regex : "\\$perl\\$", next : "statement"}]);
  625. this.embedRules(PythonHighlightRules, "python-", [{token : "string", regex : "\\$python\\$", next : "statement"}]);
  626. };
  627. oop.inherits(PgsqlHighlightRules, TextHighlightRules);
  628. exports.PgsqlHighlightRules = PgsqlHighlightRules;
  629. });
  630. /* ***** BEGIN LICENSE BLOCK *****
  631. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  632. *
  633. * The contents of this file are subject to the Mozilla Public License Version
  634. * 1.1 (the "License"); you may not use this file except in compliance with
  635. * the License. You may obtain a copy of the License at
  636. * http://www.mozilla.org/MPL/
  637. *
  638. * Software distributed under the License is distributed on an "AS IS" basis,
  639. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  640. * for the specific language governing rights and limitations under the
  641. * License.
  642. *
  643. * The Original Code is Ajax.org Code Editor (ACE).
  644. *
  645. * The Initial Developer of the Original Code is
  646. * Ajax.org B.V.
  647. * Portions created by the Initial Developer are Copyright (C) 2010
  648. * the Initial Developer. All Rights Reserved.
  649. *
  650. * Contributor(s):
  651. * Fabian Jakobs <fabian AT ajax DOT org>
  652. *
  653. * Alternatively, the contents of this file may be used under the terms of
  654. * either the GNU General Public License Version 2 or later (the "GPL"), or
  655. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  656. * in which case the provisions of the GPL or the LGPL are applicable instead
  657. * of those above. If you wish to allow use of your version of this file only
  658. * under the terms of either the GPL or the LGPL, and not to allow others to
  659. * use your version of this file under the terms of the MPL, indicate your
  660. * decision by deleting the provisions above and replace them with the notice
  661. * and other provisions required by the GPL or the LGPL. If you do not delete
  662. * the provisions above, a recipient may use your version of this file under
  663. * the terms of any one of the MPL, the GPL or the LGPL.
  664. *
  665. * ***** END LICENSE BLOCK ***** */
  666. define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
  667. "use strict";
  668. var oop = require("../lib/oop");
  669. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  670. var DocCommentHighlightRules = function() {
  671. this.$rules = {
  672. "start" : [ {
  673. token : "comment.doc.tag",
  674. regex : "@[\\w\\d_]+" // TODO: fix email addresses
  675. }, {
  676. token : "comment.doc",
  677. merge : true,
  678. regex : "\\s+"
  679. }, {
  680. token : "comment.doc",
  681. merge : true,
  682. regex : "TODO"
  683. }, {
  684. token : "comment.doc",
  685. merge : true,
  686. regex : "[^@\\*]+"
  687. }, {
  688. token : "comment.doc",
  689. merge : true,
  690. regex : "."
  691. }]
  692. };
  693. };
  694. oop.inherits(DocCommentHighlightRules, TextHighlightRules);
  695. (function() {
  696. this.getStartRule = function(start) {
  697. return {
  698. token : "comment.doc", // doc comment
  699. merge : true,
  700. regex : "\\/\\*(?=\\*)",
  701. next : start
  702. };
  703. };
  704. this.getEndRule = function (start) {
  705. return {
  706. token : "comment.doc", // closing comment
  707. merge : true,
  708. regex : "\\*\\/",
  709. next : start
  710. };
  711. };
  712. }).call(DocCommentHighlightRules.prototype);
  713. exports.DocCommentHighlightRules = DocCommentHighlightRules;
  714. });
  715. /* ***** BEGIN LICENSE BLOCK *****
  716. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  717. *
  718. * The contents of this file are subject to the Mozilla Public License Version
  719. * 1.1 (the "License"); you may not use this file except in compliance with
  720. * the License. You may obtain a copy of the License at
  721. * http://www.mozilla.org/MPL/
  722. *
  723. * Software distributed under the License is distributed on an "AS IS" basis,
  724. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  725. * for the specific language governing rights and limitations under the
  726. * License.
  727. *
  728. * The Original Code is Ajax.org Code Editor (ACE).
  729. *
  730. * The Initial Developer of the Original Code is
  731. * Ajax.org B.V.
  732. * Portions created by the Initial Developer are Copyright (C) 2010
  733. * the Initial Developer. All Rights Reserved.
  734. *
  735. * Contributor(s):
  736. * Panagiotis Astithas <pastith AT gmail DOT com>
  737. *
  738. * Alternatively, the contents of this file may be used under the terms of
  739. * either the GNU General Public License Version 2 or later (the "GPL"), or
  740. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  741. * in which case the provisions of the GPL or the LGPL are applicable instead
  742. * of those above. If you wish to allow use of your version of this file only
  743. * under the terms of either the GPL or the LGPL, and not to allow others to
  744. * use your version of this file under the terms of the MPL, indicate your
  745. * decision by deleting the provisions above and replace them with the notice
  746. * and other provisions required by the GPL or the LGPL. If you do not delete
  747. * the provisions above, a recipient may use your version of this file under
  748. * the terms of any one of the MPL, the GPL or the LGPL.
  749. *
  750. * ***** END LICENSE BLOCK ***** */
  751. define('ace/mode/perl_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
  752. "use strict";
  753. var oop = require("../lib/oop");
  754. var lang = require("../lib/lang");
  755. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  756. var PerlHighlightRules = function() {
  757. var keywords = lang.arrayToMap(
  758. ("base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
  759. "no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars").split("|")
  760. );
  761. var buildinConstants = lang.arrayToMap(
  762. ("ARGV|ENV|INC|SIG").split("|")
  763. );
  764. var builtinFunctions = lang.arrayToMap(
  765. ("getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
  766. "gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
  767. "getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
  768. "endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
  769. "getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
  770. "localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
  771. "closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
  772. "shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
  773. "dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
  774. "setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
  775. "lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
  776. "waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
  777. "chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
  778. "unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
  779. "length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
  780. "undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
  781. "sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
  782. "BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
  783. "join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
  784. "keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
  785. "eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
  786. "map|die|uc|lc|do").split("|")
  787. );
  788. // regexp must not have capturing parentheses. Use (?:) instead.
  789. // regexps are ordered -> the first match is used
  790. this.$rules = {
  791. "start" : [
  792. {
  793. token : "comment",
  794. regex : "#.*$"
  795. }, {
  796. token : "string.regexp",
  797. regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
  798. }, {
  799. token : "string", // single line
  800. regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
  801. }, {
  802. token : "string", // multi line string start
  803. merge : true,
  804. regex : '["].*\\\\$',
  805. next : "qqstring"
  806. }, {
  807. token : "string", // single line
  808. regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
  809. }, {
  810. token : "string", // multi line string start
  811. merge : true,
  812. regex : "['].*\\\\$",
  813. next : "qstring"
  814. }, {
  815. token : "constant.numeric", // hex
  816. regex : "0x[0-9a-fA-F]+\\b"
  817. }, {
  818. token : "constant.numeric", // float
  819. regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
  820. }, {
  821. token : function(value) {
  822. if (keywords.hasOwnProperty(value))
  823. return "keyword";
  824. else if (buildinConstants.hasOwnProperty(value))
  825. return "constant.language";
  826. else if (builtinFunctions.hasOwnProperty(value))
  827. return "support.function";
  828. else
  829. return "identifier";
  830. },
  831. regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
  832. }, {
  833. token : "keyword.operator",
  834. 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)"
  835. }, {
  836. token : "lparen",
  837. regex : "[[({]"
  838. }, {
  839. token : "rparen",
  840. regex : "[\\])}]"
  841. }, {
  842. token : "text",
  843. regex : "\\s+"
  844. }
  845. ],
  846. "qqstring" : [
  847. {
  848. token : "string",
  849. regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
  850. next : "start"
  851. }, {
  852. token : "string",
  853. merge : true,
  854. regex : '.+'
  855. }
  856. ],
  857. "qstring" : [
  858. {
  859. token : "string",
  860. regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
  861. next : "start"
  862. }, {
  863. token : "string",
  864. merge : true,
  865. regex : '.+'
  866. }
  867. ]
  868. };
  869. };
  870. oop.inherits(PerlHighlightRules, TextHighlightRules);
  871. exports.PerlHighlightRules = PerlHighlightRules;
  872. });
  873. /* ***** BEGIN LICENSE BLOCK *****
  874. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  875. *
  876. * The contents of this file are subject to the Mozilla Public License Version
  877. * 1.1 (the "License"); you may not use this file except in compliance with
  878. * the License. You may obtain a copy of the License at
  879. * http://www.mozilla.org/MPL/
  880. *
  881. * Software distributed under the License is distributed on an "AS IS" basis,
  882. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  883. * for the specific language governing rights and limitations under the
  884. * License.
  885. *
  886. * The Original Code is Ajax.org Code Editor (ACE).
  887. *
  888. * The Initial Developer of the Original Code is
  889. * Ajax.org B.V.
  890. * Portions created by the Initial Developer are Copyright (C) 2010
  891. * the Initial Developer. All Rights Reserved.
  892. *
  893. * Contributor(s):
  894. * Fabian Jakobs <fabian AT ajax DOT org>
  895. * Colin Gourlay <colin DOT j DOT gourlay AT gmail DOT com>
  896. *
  897. * Alternatively, the contents of this file may be used under the terms of
  898. * either the GNU General Public License Version 2 or later (the "GPL"), or
  899. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  900. * in which case the provisions of the GPL or the LGPL are applicable instead
  901. * of those above. If you wish to allow use of your version of this file only
  902. * under the terms of either the GPL or the LGPL, and not to allow others to
  903. * use your version of this file under the terms of the MPL, indicate your
  904. * decision by deleting the provisions above and replace them with the notice
  905. * and other provisions required by the GPL or the LGPL. If you do not delete
  906. * the provisions above, a recipient may use your version of this file under
  907. * the terms of any one of the MPL, the GPL or the LGPL.
  908. *
  909. * ***** END LICENSE BLOCK *****
  910. *
  911. * TODO: python delimiters
  912. */
  913. define('ace/mode/python_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
  914. "use strict";
  915. var oop = require("../lib/oop");
  916. var lang = require("../lib/lang");
  917. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  918. var PythonHighlightRules = function() {
  919. var keywords = lang.arrayToMap(
  920. ("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
  921. "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
  922. "raise|return|try|while|with|yield").split("|")
  923. );
  924. var builtinConstants = lang.arrayToMap(
  925. ("True|False|None|NotImplemented|Ellipsis|__debug__").split("|")
  926. );
  927. var builtinFunctions = lang.arrayToMap(
  928. ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
  929. "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
  930. "binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
  931. "float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
  932. "chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|" +
  933. "cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
  934. "__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
  935. "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern").split("|")
  936. );
  937. var futureReserved = lang.arrayToMap(
  938. ("").split("|")
  939. );
  940. var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
  941. var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
  942. var octInteger = "(?:0[oO]?[0-7]+)";
  943. var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
  944. var binInteger = "(?:0[bB][01]+)";
  945. var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
  946. var exponent = "(?:[eE][+-]?\\d+)";
  947. var fraction = "(?:\\.\\d+)";
  948. var intPart = "(?:\\d+)";
  949. var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
  950. var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
  951. var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
  952. this.$rules = {
  953. "start" : [ {
  954. token : "comment",
  955. regex : "#.*$"
  956. }, {
  957. token : "string", // """ string
  958. regex : strPre + '"{3}(?:[^\\\\]|\\\\.)*?"{3}'
  959. }, {
  960. token : "string", // multi line """ string start
  961. merge : true,
  962. regex : strPre + '"{3}.*$',
  963. next : "qqstring"
  964. }, {
  965. token : "string", // " string
  966. regex : strPre + '"(?:[^\\\\]|\\\\.)*?"'
  967. }, {
  968. token : "string", // ''' string
  969. regex : strPre + "'{3}(?:[^\\\\]|\\\\.)*?'{3}"
  970. }, {
  971. token : "string", // multi line ''' string start
  972. merge : true,
  973. regex : strPre + "'{3}.*$",
  974. next : "qstring"
  975. }, {
  976. token : "string", // ' string
  977. regex : strPre + "'(?:[^\\\\]|\\\\.)*?'"
  978. }, {
  979. token : "constant.numeric", // imaginary
  980. regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
  981. }, {
  982. token : "constant.numeric", // float
  983. regex : floatNumber
  984. }, {
  985. token : "constant.numeric", // long integer
  986. regex : integer + "[lL]\\b"
  987. }, {
  988. token : "constant.numeric", // integer
  989. regex : integer + "\\b"
  990. }, {
  991. token : function(value) {
  992. if (keywords.hasOwnProperty(value))
  993. return "keyword";
  994. else if (builtinConstants.hasOwnProperty(value))
  995. return "constant.language";
  996. else if (futureReserved.hasOwnProperty(value))
  997. return "invalid.illegal";
  998. else if (builtinFunctions.hasOwnProperty(value))
  999. return "support.function";
  1000. else if (value == "debugger")
  1001. return "invalid.deprecated";
  1002. else
  1003. return "identifier";
  1004. },
  1005. regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
  1006. }, {
  1007. token : "keyword.operator",
  1008. regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
  1009. }, {
  1010. token : "lparen.paren",
  1011. regex : "[\\[\\(\\{]"
  1012. }, {
  1013. token : "paren.rparen",
  1014. regex : "[\\]\\)\\}]"
  1015. }, {
  1016. token : "text",
  1017. regex : "\\s+"
  1018. } ],
  1019. "qqstring" : [ {
  1020. token : "string", // multi line """ string end
  1021. regex : '(?:[^\\\\]|\\\\.)*?"{3}',
  1022. next : "start"
  1023. }, {
  1024. token : "string",
  1025. merge : true,
  1026. regex : '.+'
  1027. } ],
  1028. "qstring" : [ {
  1029. token : "string", // multi line ''' string end
  1030. regex : "(?:[^\\\\]|\\\\.)*?'{3}",
  1031. next : "start"
  1032. }, {
  1033. token : "string",
  1034. merge : true,
  1035. regex : '.+'
  1036. } ]
  1037. };
  1038. };
  1039. oop.inherits(PythonHighlightRules, TextHighlightRules);
  1040. exports.PythonHighlightRules = PythonHighlightRules;
  1041. });