redshift.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. "use strict";
  2. /*!-----------------------------------------------------------------------------
  3. * Copyright (c) Microsoft Corporation. All rights reserved.
  4. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  5. * Released under the MIT license
  6. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  7. *-----------------------------------------------------------------------------*/
  8. define("vs/basic-languages/redshift/redshift", ["require"],(require)=>{
  9. var moduleExports = (() => {
  10. var __defProp = Object.defineProperty;
  11. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  12. var __getOwnPropNames = Object.getOwnPropertyNames;
  13. var __hasOwnProp = Object.prototype.hasOwnProperty;
  14. var __export = (target, all) => {
  15. for (var name in all)
  16. __defProp(target, name, { get: all[name], enumerable: true });
  17. };
  18. var __copyProps = (to, from, except, desc) => {
  19. if (from && typeof from === "object" || typeof from === "function") {
  20. for (let key of __getOwnPropNames(from))
  21. if (!__hasOwnProp.call(to, key) && key !== except)
  22. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  23. }
  24. return to;
  25. };
  26. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  27. // src/basic-languages/redshift/redshift.ts
  28. var redshift_exports = {};
  29. __export(redshift_exports, {
  30. conf: () => conf,
  31. language: () => language
  32. });
  33. var conf = {
  34. comments: {
  35. lineComment: "--",
  36. blockComment: ["/*", "*/"]
  37. },
  38. brackets: [
  39. ["{", "}"],
  40. ["[", "]"],
  41. ["(", ")"]
  42. ],
  43. autoClosingPairs: [
  44. { open: "{", close: "}" },
  45. { open: "[", close: "]" },
  46. { open: "(", close: ")" },
  47. { open: '"', close: '"' },
  48. { open: "'", close: "'" }
  49. ],
  50. surroundingPairs: [
  51. { open: "{", close: "}" },
  52. { open: "[", close: "]" },
  53. { open: "(", close: ")" },
  54. { open: '"', close: '"' },
  55. { open: "'", close: "'" }
  56. ]
  57. };
  58. var language = {
  59. defaultToken: "",
  60. tokenPostfix: ".sql",
  61. ignoreCase: true,
  62. brackets: [
  63. { open: "[", close: "]", token: "delimiter.square" },
  64. { open: "(", close: ")", token: "delimiter.parenthesis" }
  65. ],
  66. keywords: [
  67. "AES128",
  68. "AES256",
  69. "ALL",
  70. "ALLOWOVERWRITE",
  71. "ANALYSE",
  72. "ANALYZE",
  73. "AND",
  74. "ANY",
  75. "ARRAY",
  76. "AS",
  77. "ASC",
  78. "AUTHORIZATION",
  79. "AZ64",
  80. "BACKUP",
  81. "BETWEEN",
  82. "BINARY",
  83. "BLANKSASNULL",
  84. "BOTH",
  85. "BYTEDICT",
  86. "BZIP2",
  87. "CASE",
  88. "CAST",
  89. "CHECK",
  90. "COLLATE",
  91. "COLUMN",
  92. "CONSTRAINT",
  93. "CREATE",
  94. "CREDENTIALS",
  95. "CROSS",
  96. "CURRENT_DATE",
  97. "CURRENT_TIME",
  98. "CURRENT_TIMESTAMP",
  99. "CURRENT_USER",
  100. "CURRENT_USER_ID",
  101. "DEFAULT",
  102. "DEFERRABLE",
  103. "DEFLATE",
  104. "DEFRAG",
  105. "DELTA",
  106. "DELTA32K",
  107. "DESC",
  108. "DISABLE",
  109. "DISTINCT",
  110. "DO",
  111. "ELSE",
  112. "EMPTYASNULL",
  113. "ENABLE",
  114. "ENCODE",
  115. "ENCRYPT",
  116. "ENCRYPTION",
  117. "END",
  118. "EXCEPT",
  119. "EXPLICIT",
  120. "FALSE",
  121. "FOR",
  122. "FOREIGN",
  123. "FREEZE",
  124. "FROM",
  125. "FULL",
  126. "GLOBALDICT256",
  127. "GLOBALDICT64K",
  128. "GRANT",
  129. "GROUP",
  130. "GZIP",
  131. "HAVING",
  132. "IDENTITY",
  133. "IGNORE",
  134. "ILIKE",
  135. "IN",
  136. "INITIALLY",
  137. "INNER",
  138. "INTERSECT",
  139. "INTO",
  140. "IS",
  141. "ISNULL",
  142. "JOIN",
  143. "LANGUAGE",
  144. "LEADING",
  145. "LEFT",
  146. "LIKE",
  147. "LIMIT",
  148. "LOCALTIME",
  149. "LOCALTIMESTAMP",
  150. "LUN",
  151. "LUNS",
  152. "LZO",
  153. "LZOP",
  154. "MINUS",
  155. "MOSTLY16",
  156. "MOSTLY32",
  157. "MOSTLY8",
  158. "NATURAL",
  159. "NEW",
  160. "NOT",
  161. "NOTNULL",
  162. "NULL",
  163. "NULLS",
  164. "OFF",
  165. "OFFLINE",
  166. "OFFSET",
  167. "OID",
  168. "OLD",
  169. "ON",
  170. "ONLY",
  171. "OPEN",
  172. "OR",
  173. "ORDER",
  174. "OUTER",
  175. "OVERLAPS",
  176. "PARALLEL",
  177. "PARTITION",
  178. "PERCENT",
  179. "PERMISSIONS",
  180. "PLACING",
  181. "PRIMARY",
  182. "RAW",
  183. "READRATIO",
  184. "RECOVER",
  185. "REFERENCES",
  186. "RESPECT",
  187. "REJECTLOG",
  188. "RESORT",
  189. "RESTORE",
  190. "RIGHT",
  191. "SELECT",
  192. "SESSION_USER",
  193. "SIMILAR",
  194. "SNAPSHOT",
  195. "SOME",
  196. "SYSDATE",
  197. "SYSTEM",
  198. "TABLE",
  199. "TAG",
  200. "TDES",
  201. "TEXT255",
  202. "TEXT32K",
  203. "THEN",
  204. "TIMESTAMP",
  205. "TO",
  206. "TOP",
  207. "TRAILING",
  208. "TRUE",
  209. "TRUNCATECOLUMNS",
  210. "UNION",
  211. "UNIQUE",
  212. "USER",
  213. "USING",
  214. "VERBOSE",
  215. "WALLET",
  216. "WHEN",
  217. "WHERE",
  218. "WITH",
  219. "WITHOUT"
  220. ],
  221. operators: [
  222. "AND",
  223. "BETWEEN",
  224. "IN",
  225. "LIKE",
  226. "NOT",
  227. "OR",
  228. "IS",
  229. "NULL",
  230. "INTERSECT",
  231. "UNION",
  232. "INNER",
  233. "JOIN",
  234. "LEFT",
  235. "OUTER",
  236. "RIGHT"
  237. ],
  238. builtinFunctions: [
  239. "current_schema",
  240. "current_schemas",
  241. "has_database_privilege",
  242. "has_schema_privilege",
  243. "has_table_privilege",
  244. "age",
  245. "current_time",
  246. "current_timestamp",
  247. "localtime",
  248. "isfinite",
  249. "now",
  250. "ascii",
  251. "get_bit",
  252. "get_byte",
  253. "set_bit",
  254. "set_byte",
  255. "to_ascii",
  256. "approximate percentile_disc",
  257. "avg",
  258. "count",
  259. "listagg",
  260. "max",
  261. "median",
  262. "min",
  263. "percentile_cont",
  264. "stddev_samp",
  265. "stddev_pop",
  266. "sum",
  267. "var_samp",
  268. "var_pop",
  269. "bit_and",
  270. "bit_or",
  271. "bool_and",
  272. "bool_or",
  273. "cume_dist",
  274. "first_value",
  275. "lag",
  276. "last_value",
  277. "lead",
  278. "nth_value",
  279. "ratio_to_report",
  280. "dense_rank",
  281. "ntile",
  282. "percent_rank",
  283. "rank",
  284. "row_number",
  285. "case",
  286. "coalesce",
  287. "decode",
  288. "greatest",
  289. "least",
  290. "nvl",
  291. "nvl2",
  292. "nullif",
  293. "add_months",
  294. "at time zone",
  295. "convert_timezone",
  296. "current_date",
  297. "date_cmp",
  298. "date_cmp_timestamp",
  299. "date_cmp_timestamptz",
  300. "date_part_year",
  301. "dateadd",
  302. "datediff",
  303. "date_part",
  304. "date_trunc",
  305. "extract",
  306. "getdate",
  307. "interval_cmp",
  308. "last_day",
  309. "months_between",
  310. "next_day",
  311. "sysdate",
  312. "timeofday",
  313. "timestamp_cmp",
  314. "timestamp_cmp_date",
  315. "timestamp_cmp_timestamptz",
  316. "timestamptz_cmp",
  317. "timestamptz_cmp_date",
  318. "timestamptz_cmp_timestamp",
  319. "timezone",
  320. "to_timestamp",
  321. "trunc",
  322. "abs",
  323. "acos",
  324. "asin",
  325. "atan",
  326. "atan2",
  327. "cbrt",
  328. "ceil",
  329. "ceiling",
  330. "checksum",
  331. "cos",
  332. "cot",
  333. "degrees",
  334. "dexp",
  335. "dlog1",
  336. "dlog10",
  337. "exp",
  338. "floor",
  339. "ln",
  340. "log",
  341. "mod",
  342. "pi",
  343. "power",
  344. "radians",
  345. "random",
  346. "round",
  347. "sin",
  348. "sign",
  349. "sqrt",
  350. "tan",
  351. "to_hex",
  352. "bpcharcmp",
  353. "btrim",
  354. "bttext_pattern_cmp",
  355. "char_length",
  356. "character_length",
  357. "charindex",
  358. "chr",
  359. "concat",
  360. "crc32",
  361. "func_sha1",
  362. "initcap",
  363. "left and rights",
  364. "len",
  365. "length",
  366. "lower",
  367. "lpad and rpads",
  368. "ltrim",
  369. "md5",
  370. "octet_length",
  371. "position",
  372. "quote_ident",
  373. "quote_literal",
  374. "regexp_count",
  375. "regexp_instr",
  376. "regexp_replace",
  377. "regexp_substr",
  378. "repeat",
  379. "replace",
  380. "replicate",
  381. "reverse",
  382. "rtrim",
  383. "split_part",
  384. "strpos",
  385. "strtol",
  386. "substring",
  387. "textlen",
  388. "translate",
  389. "trim",
  390. "upper",
  391. "cast",
  392. "convert",
  393. "to_char",
  394. "to_date",
  395. "to_number",
  396. "json_array_length",
  397. "json_extract_array_element_text",
  398. "json_extract_path_text",
  399. "current_setting",
  400. "pg_cancel_backend",
  401. "pg_terminate_backend",
  402. "set_config",
  403. "current_database",
  404. "current_user",
  405. "current_user_id",
  406. "pg_backend_pid",
  407. "pg_last_copy_count",
  408. "pg_last_copy_id",
  409. "pg_last_query_id",
  410. "pg_last_unload_count",
  411. "session_user",
  412. "slice_num",
  413. "user",
  414. "version",
  415. "abbrev",
  416. "acosd",
  417. "any",
  418. "area",
  419. "array_agg",
  420. "array_append",
  421. "array_cat",
  422. "array_dims",
  423. "array_fill",
  424. "array_length",
  425. "array_lower",
  426. "array_ndims",
  427. "array_position",
  428. "array_positions",
  429. "array_prepend",
  430. "array_remove",
  431. "array_replace",
  432. "array_to_json",
  433. "array_to_string",
  434. "array_to_tsvector",
  435. "array_upper",
  436. "asind",
  437. "atan2d",
  438. "atand",
  439. "bit",
  440. "bit_length",
  441. "bound_box",
  442. "box",
  443. "brin_summarize_new_values",
  444. "broadcast",
  445. "cardinality",
  446. "center",
  447. "circle",
  448. "clock_timestamp",
  449. "col_description",
  450. "concat_ws",
  451. "convert_from",
  452. "convert_to",
  453. "corr",
  454. "cosd",
  455. "cotd",
  456. "covar_pop",
  457. "covar_samp",
  458. "current_catalog",
  459. "current_query",
  460. "current_role",
  461. "currval",
  462. "cursor_to_xml",
  463. "diameter",
  464. "div",
  465. "encode",
  466. "enum_first",
  467. "enum_last",
  468. "enum_range",
  469. "every",
  470. "family",
  471. "format",
  472. "format_type",
  473. "generate_series",
  474. "generate_subscripts",
  475. "get_current_ts_config",
  476. "gin_clean_pending_list",
  477. "grouping",
  478. "has_any_column_privilege",
  479. "has_column_privilege",
  480. "has_foreign_data_wrapper_privilege",
  481. "has_function_privilege",
  482. "has_language_privilege",
  483. "has_sequence_privilege",
  484. "has_server_privilege",
  485. "has_tablespace_privilege",
  486. "has_type_privilege",
  487. "height",
  488. "host",
  489. "hostmask",
  490. "inet_client_addr",
  491. "inet_client_port",
  492. "inet_merge",
  493. "inet_same_family",
  494. "inet_server_addr",
  495. "inet_server_port",
  496. "isclosed",
  497. "isempty",
  498. "isopen",
  499. "json_agg",
  500. "json_object",
  501. "json_object_agg",
  502. "json_populate_record",
  503. "json_populate_recordset",
  504. "json_to_record",
  505. "json_to_recordset",
  506. "jsonb_agg",
  507. "jsonb_object_agg",
  508. "justify_days",
  509. "justify_hours",
  510. "justify_interval",
  511. "lastval",
  512. "left",
  513. "line",
  514. "localtimestamp",
  515. "lower_inc",
  516. "lower_inf",
  517. "lpad",
  518. "lseg",
  519. "make_date",
  520. "make_interval",
  521. "make_time",
  522. "make_timestamp",
  523. "make_timestamptz",
  524. "masklen",
  525. "mode",
  526. "netmask",
  527. "network",
  528. "nextval",
  529. "npoints",
  530. "num_nonnulls",
  531. "num_nulls",
  532. "numnode",
  533. "obj_description",
  534. "overlay",
  535. "parse_ident",
  536. "path",
  537. "pclose",
  538. "percentile_disc",
  539. "pg_advisory_lock",
  540. "pg_advisory_lock_shared",
  541. "pg_advisory_unlock",
  542. "pg_advisory_unlock_all",
  543. "pg_advisory_unlock_shared",
  544. "pg_advisory_xact_lock",
  545. "pg_advisory_xact_lock_shared",
  546. "pg_backup_start_time",
  547. "pg_blocking_pids",
  548. "pg_client_encoding",
  549. "pg_collation_is_visible",
  550. "pg_column_size",
  551. "pg_conf_load_time",
  552. "pg_control_checkpoint",
  553. "pg_control_init",
  554. "pg_control_recovery",
  555. "pg_control_system",
  556. "pg_conversion_is_visible",
  557. "pg_create_logical_replication_slot",
  558. "pg_create_physical_replication_slot",
  559. "pg_create_restore_point",
  560. "pg_current_xlog_flush_location",
  561. "pg_current_xlog_insert_location",
  562. "pg_current_xlog_location",
  563. "pg_database_size",
  564. "pg_describe_object",
  565. "pg_drop_replication_slot",
  566. "pg_export_snapshot",
  567. "pg_filenode_relation",
  568. "pg_function_is_visible",
  569. "pg_get_constraintdef",
  570. "pg_get_expr",
  571. "pg_get_function_arguments",
  572. "pg_get_function_identity_arguments",
  573. "pg_get_function_result",
  574. "pg_get_functiondef",
  575. "pg_get_indexdef",
  576. "pg_get_keywords",
  577. "pg_get_object_address",
  578. "pg_get_owned_sequence",
  579. "pg_get_ruledef",
  580. "pg_get_serial_sequence",
  581. "pg_get_triggerdef",
  582. "pg_get_userbyid",
  583. "pg_get_viewdef",
  584. "pg_has_role",
  585. "pg_identify_object",
  586. "pg_identify_object_as_address",
  587. "pg_index_column_has_property",
  588. "pg_index_has_property",
  589. "pg_indexam_has_property",
  590. "pg_indexes_size",
  591. "pg_is_in_backup",
  592. "pg_is_in_recovery",
  593. "pg_is_other_temp_schema",
  594. "pg_is_xlog_replay_paused",
  595. "pg_last_committed_xact",
  596. "pg_last_xact_replay_timestamp",
  597. "pg_last_xlog_receive_location",
  598. "pg_last_xlog_replay_location",
  599. "pg_listening_channels",
  600. "pg_logical_emit_message",
  601. "pg_logical_slot_get_binary_changes",
  602. "pg_logical_slot_get_changes",
  603. "pg_logical_slot_peek_binary_changes",
  604. "pg_logical_slot_peek_changes",
  605. "pg_ls_dir",
  606. "pg_my_temp_schema",
  607. "pg_notification_queue_usage",
  608. "pg_opclass_is_visible",
  609. "pg_operator_is_visible",
  610. "pg_opfamily_is_visible",
  611. "pg_options_to_table",
  612. "pg_postmaster_start_time",
  613. "pg_read_binary_file",
  614. "pg_read_file",
  615. "pg_relation_filenode",
  616. "pg_relation_filepath",
  617. "pg_relation_size",
  618. "pg_reload_conf",
  619. "pg_replication_origin_create",
  620. "pg_replication_origin_drop",
  621. "pg_replication_origin_oid",
  622. "pg_replication_origin_progress",
  623. "pg_replication_origin_session_is_setup",
  624. "pg_replication_origin_session_progress",
  625. "pg_replication_origin_session_reset",
  626. "pg_replication_origin_session_setup",
  627. "pg_replication_origin_xact_reset",
  628. "pg_replication_origin_xact_setup",
  629. "pg_rotate_logfile",
  630. "pg_size_bytes",
  631. "pg_size_pretty",
  632. "pg_sleep",
  633. "pg_sleep_for",
  634. "pg_sleep_until",
  635. "pg_start_backup",
  636. "pg_stat_file",
  637. "pg_stop_backup",
  638. "pg_switch_xlog",
  639. "pg_table_is_visible",
  640. "pg_table_size",
  641. "pg_tablespace_databases",
  642. "pg_tablespace_location",
  643. "pg_tablespace_size",
  644. "pg_total_relation_size",
  645. "pg_trigger_depth",
  646. "pg_try_advisory_lock",
  647. "pg_try_advisory_lock_shared",
  648. "pg_try_advisory_xact_lock",
  649. "pg_try_advisory_xact_lock_shared",
  650. "pg_ts_config_is_visible",
  651. "pg_ts_dict_is_visible",
  652. "pg_ts_parser_is_visible",
  653. "pg_ts_template_is_visible",
  654. "pg_type_is_visible",
  655. "pg_typeof",
  656. "pg_xact_commit_timestamp",
  657. "pg_xlog_location_diff",
  658. "pg_xlog_replay_pause",
  659. "pg_xlog_replay_resume",
  660. "pg_xlogfile_name",
  661. "pg_xlogfile_name_offset",
  662. "phraseto_tsquery",
  663. "plainto_tsquery",
  664. "point",
  665. "polygon",
  666. "popen",
  667. "pqserverversion",
  668. "query_to_xml",
  669. "querytree",
  670. "quote_nullable",
  671. "radius",
  672. "range_merge",
  673. "regexp_matches",
  674. "regexp_split_to_array",
  675. "regexp_split_to_table",
  676. "regr_avgx",
  677. "regr_avgy",
  678. "regr_count",
  679. "regr_intercept",
  680. "regr_r2",
  681. "regr_slope",
  682. "regr_sxx",
  683. "regr_sxy",
  684. "regr_syy",
  685. "right",
  686. "row_security_active",
  687. "row_to_json",
  688. "rpad",
  689. "scale",
  690. "set_masklen",
  691. "setseed",
  692. "setval",
  693. "setweight",
  694. "shobj_description",
  695. "sind",
  696. "sprintf",
  697. "statement_timestamp",
  698. "stddev",
  699. "string_agg",
  700. "string_to_array",
  701. "strip",
  702. "substr",
  703. "table_to_xml",
  704. "table_to_xml_and_xmlschema",
  705. "tand",
  706. "text",
  707. "to_json",
  708. "to_regclass",
  709. "to_regnamespace",
  710. "to_regoper",
  711. "to_regoperator",
  712. "to_regproc",
  713. "to_regprocedure",
  714. "to_regrole",
  715. "to_regtype",
  716. "to_tsquery",
  717. "to_tsvector",
  718. "transaction_timestamp",
  719. "ts_debug",
  720. "ts_delete",
  721. "ts_filter",
  722. "ts_headline",
  723. "ts_lexize",
  724. "ts_parse",
  725. "ts_rank",
  726. "ts_rank_cd",
  727. "ts_rewrite",
  728. "ts_stat",
  729. "ts_token_type",
  730. "tsquery_phrase",
  731. "tsvector_to_array",
  732. "tsvector_update_trigger",
  733. "tsvector_update_trigger_column",
  734. "txid_current",
  735. "txid_current_snapshot",
  736. "txid_snapshot_xip",
  737. "txid_snapshot_xmax",
  738. "txid_snapshot_xmin",
  739. "txid_visible_in_snapshot",
  740. "unnest",
  741. "upper_inc",
  742. "upper_inf",
  743. "variance",
  744. "width",
  745. "width_bucket",
  746. "xml_is_well_formed",
  747. "xml_is_well_formed_content",
  748. "xml_is_well_formed_document",
  749. "xmlagg",
  750. "xmlcomment",
  751. "xmlconcat",
  752. "xmlelement",
  753. "xmlexists",
  754. "xmlforest",
  755. "xmlparse",
  756. "xmlpi",
  757. "xmlroot",
  758. "xmlserialize",
  759. "xpath",
  760. "xpath_exists"
  761. ],
  762. builtinVariables: [],
  763. pseudoColumns: [],
  764. tokenizer: {
  765. root: [
  766. { include: "@comments" },
  767. { include: "@whitespace" },
  768. { include: "@pseudoColumns" },
  769. { include: "@numbers" },
  770. { include: "@strings" },
  771. { include: "@complexIdentifiers" },
  772. { include: "@scopes" },
  773. [/[;,.]/, "delimiter"],
  774. [/[()]/, "@brackets"],
  775. [
  776. /[\w@#$]+/,
  777. {
  778. cases: {
  779. "@keywords": "keyword",
  780. "@operators": "operator",
  781. "@builtinVariables": "predefined",
  782. "@builtinFunctions": "predefined",
  783. "@default": "identifier"
  784. }
  785. }
  786. ],
  787. [/[<>=!%&+\-*/|~^]/, "operator"]
  788. ],
  789. whitespace: [[/\s+/, "white"]],
  790. comments: [
  791. [/--+.*/, "comment"],
  792. [/\/\*/, { token: "comment.quote", next: "@comment" }]
  793. ],
  794. comment: [
  795. [/[^*/]+/, "comment"],
  796. [/\*\//, { token: "comment.quote", next: "@pop" }],
  797. [/./, "comment"]
  798. ],
  799. pseudoColumns: [
  800. [
  801. /[$][A-Za-z_][\w@#$]*/,
  802. {
  803. cases: {
  804. "@pseudoColumns": "predefined",
  805. "@default": "identifier"
  806. }
  807. }
  808. ]
  809. ],
  810. numbers: [
  811. [/0[xX][0-9a-fA-F]*/, "number"],
  812. [/[$][+-]*\d*(\.\d*)?/, "number"],
  813. [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
  814. ],
  815. strings: [[/'/, { token: "string", next: "@string" }]],
  816. string: [
  817. [/[^']+/, "string"],
  818. [/''/, "string"],
  819. [/'/, { token: "string", next: "@pop" }]
  820. ],
  821. complexIdentifiers: [[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]],
  822. quotedIdentifier: [
  823. [/[^"]+/, "identifier"],
  824. [/""/, "identifier"],
  825. [/"/, { token: "identifier.quote", next: "@pop" }]
  826. ],
  827. scopes: []
  828. }
  829. };
  830. return __toCommonJS(redshift_exports);
  831. })();
  832. return moduleExports;
  833. });