redshift.js 18 KB

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