@codingame/monaco-vscode-standalone-languages 3.2.0

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