-
Notifications
You must be signed in to change notification settings - Fork 8
/
completions.pike
590 lines (544 loc) · 19.2 KB
/
completions.pike
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
/*
This script generates Pike.sublime-completions
*/
// Index is the trigger, value the expansion
mapping builtins = ([
/* Language constants */
"UNDEFINED" : "UNDEFINED",
"__MAJOR__" : "__MAJOR__",
"__MINOR__" : "__MINOR__",
"__BUILD__" : "__BUILD__",
"__REAL_VERSION__" : "__REAL_VERSION__",
"__REAL_MAJOR__" : "__REAL_MAJOR__",
"__REAL_MINOR__" : "__REAL_MINOR__",
"__REAL_BUILD__" : "__REAL_BUILD__",
"__DATE__" : "__DATE__",
"__TIME__" : "__TIME__",
"__AUTO_BIGNUM__" : "__AUTO_BIGNUM__",
"__NT__" : "__NT__",
"__PIKE__" : "__PIKE__",
"__amigaos__" : "__amigaos__",
"__VERSION__" : "__VERSION__",
"__DIR__" : "__DIR__",
"__FILE__" : "__FILE__",
"__LINE__" : "__LINE__",
"__func__" : "__func__",
"this_program" : "this_program",
/* Storage modifiers */
"public" : "public ${1}",
"protected" : "protected ${1}",
"private" : "private ${1}",
"static" : "static ${1}",
"constant" : "constant ${1}",
"local" : "local ${1}",
"final" : "final ${1}",
"variant" : "variant ${1}",
"auto" : "auto ${1}",
"optional" : "optional ${1}",
/* Built-in functions */
"abs": "abs(${1:float|int|object arg})",
"access": "access(${1:string path}, ${2:string|void mode})",
"acos": "acos(${1:float arg})",
"acosh": "acosh(${1:float arg})",
"add_constant":"add_constant(${1:string name}, ${2:mixed value})",
"add_include_path":"add_include_path(${1:string tmp})",
"add_module_path":"add_module_path(${1:string tmp})",
"add_program_path":"add_program_path(${1:string tmp})",
"aggregate":"aggregate(${1:mixed ... elements})",
"aggregate_mapping":"aggregate_mapping(${1:mixed ... elements})",
"aggregate_multiset":"aggregate_multiset(${1:mixed ... elements})",
"alarm":"alarm(${1:int seconds})",
"all_constants":"all_constants()",
"all_threads":"all_threads()",
"allocate":"allocate(${1:int size}${2:, mixed init})",
"array_sscanf":"array_sscanf(${1:string data}, ${2:string format})",
"arrayp":"arrayp(${1:mixed ... arg})",
"asin":"asin(${1:int|float f})",
"asinh":"asinh(${1:int|float f})",
"atan":"atan(${1:int|float f1}, ${2:int|float f2})",
"atan2":"atan2(${1:int|float f1}, ${2:int|float f2})",
"atanh":"atanh(${1:int|float f})",
"atexit":"atexit(${1:function(:void) callback})",
"backtrace":"backtrace()",
"basename":"basename(${1:string path})",
"basetype":"basetype(${1:mixed value})",
"bool":"bool",
"call_function":"call_function(${1:function(:void) fun}, ${2:mixed ... args})",
"call_out": "call_out(${1:function f}, ${2:float|int delay}, ${3:void|mixed ... args});",
"call_out_info":"call_out_info()",
"callablep": "callablep(${1:mixed arg})",
"cd":"cd(${1:string path})",
"ceil":"ceil(${1:float f})",
"chmod":"chmod(${1:string path}, ${2:int mode})",
"chown":"chown",
"chroot":"chroot",
"cleargroups":"cleargroups",
"closelog":"closelog",
"column":"column(${1:array data}, ${2:mixed index})",
"combine_path":"combine_path(${1:string path}, ${2:string ... paths})",
"combine_path_amigaos":"combine_path_amigaos(${1:string path}, ${2:string ... paths})",
"combine_path_nt":"combine_path_nt(${1:string path}, ${2:string ... paths})",
"combine_path_unix":"combine_path_unix(${1:string path}, ${2:string ... paths})",
"compile":"compile(${1:string source}, ${2:CompilationHandler|void handler}, ${3:int|void major}, ${4:int|void minor}, ${5:program|void target}, ${6:object|void placeholder})",
"compile_file":"compile_file(${1:string filename}, ${2:object|void handler}, ${3:void|program p}, ${4:void|object o})",
"compile_string":"compile_string(${1:string source}, ${2:void|string filename}, ${3:object|void handler}, ${4:void|program p}, ${5:void|object o}, ${6:void|int _show_if_constant_errors})",
"copy_value": "copy_value(${1:mixed value})",
"cos":"cos(${1:int|float f})",
"cosh":"cosh(${1:int|float f})",
"cpp":"cpp(${1:string data}, ${2:mapping|string|void current_file}, ${3:int|string|void charset}, ${4:object|void handler}, ${5:void|int compat_major}, ${6:void|int compat_minor}, ${7:void|int picky_cpp})",
"crypt":"crypt(${1:string password_or_typed_password}${2:, string crypted_password})",
"ctime":"ctime(${1:int timestamp})",
"decode_value":"decode_value(${1:string coded_value}${2:, void|Codec codec})",
"delay":"delay(${1:int|float s})",
"describe_backtrace":"describe_backtrace(${1:mixed trace}${2:, void|int linewidth})",
"describe_error":"describe_error(${1:mixed err})",
"destruct":"destruct(${1:void|object o})",
"destructedp":"destructedp(${1:mixed arg})",
"dirname":"dirname(${1:string path})",
"encode_value":"encode_value(${1:mixed value}${2:, Codec|void codec})",
"encode_value_canonic":"encode_value_canonic(${1:mixed value}${2:, Codec|void codec})",
"enumerate":"enumerate(${1:int n}${2:, void|mixed step}${3:, void|mixed start}${4:, void|function(:void) operator})",
"equal":"equal(${1:mixed a}, ${2:mixed b})",
"errno":"errno()",
"error":"error(${1:sprintf_format f}, ${2:sprintf_args ... args})",
"exece":"exece(${1:string file}, ${2:array(string) args}${3:, void|mapping(string:string) env})",
"exit":"exit(${1:int returncode}${2:, void|string fmt}${3:, mixed ... extra})",
"exp":"exp(${1:float|int f})",
"explode_path":"explode_path(${1:string p})",
"file_stat":"file_stat(${1:string path}${2:, void|bool symlink})",
"file_truncate":"file_truncate(${1:string file}, ${2:int length})",
"filesystem_stat":"filesystem_stat(${1:string path})",
"filter":"filter(${1:mixed arr}${2:, void|mixed fun}${3:, mixed ... extra})",
"find_call_out":"find_call_out(${1:mixed|function(:void) id_or_func})",
"floatp":"floatp(${1:mixed val})",
"floor":"floor(${1:float|int f})",
"fork":"fork()",
"function_name":"function_name(${1:function(:void)|program f})",
"function_object":"function_object(${1:function(:void) f})",
"function_program":"function_program(${1:function(:void) f})",
"functionp":"functionp(${1:mixed val})",
"gc":"gc()",
"get_active_compilation_handler":"get_active_compilation_handler()",
"get_active_error_handler":"get_active_error_handler()",
"get_all_groups":"get_all_groups()",
"get_all_users":"get_all_users()",
"get_backtrace":"get_backtrace(${1:object|array err})",
"get_dir":"get_dir(${1:void|string dirname})",
"get_groups_for_user":"get_groups_for_user(${1:int|string user})",
"get_iterator":"get_iterator(${1:object|array|mapping|multiset|string data})",
"get_profiling_info":"get_profiling_info(${1:program prog})",
"get_weak_flag":"get_weak_flag(${1:array|mapping|multiset m})",
"getcwd":"getcwd()",
"getegid":"getegid(${1:int gid})",
"getenv":"getenv(${1:string|void env})",
"geteuid":"geteuid()",
"getgid":"getgid()",
"getgrgid":"getgrgid(${1:int gid})",
"getgrnam":"getgrnam(${1:string str})",
"getgroups":"getgroups()",
"gethostbyaddr":"gethostbyaddr(${1:string addr})",
"gethostbyname":"gethostbyname(${1:string hostname})",
"gethostname":"gethostname()",
"gethrtime":"gethrtime(${1:void|int nsec})",
"gethrvtime":"gethrvtime(${1:void|int nsec})",
"getpgrp":"getpgrp(${1:int|void pid})",
"getpid":"getpid()",
"getppid":"getppid()",
"getpwnam":"getpwnam(${1:string str})",
"getpwuid":"getpwuid(${1:int uid})",
"getsid":"getsid(${1:int|void pid})",
"getuid":"getuid()",
"getxattr":"getxattr(${1:string file}, ${2:string attr}${3:, void|bool symlink})",
"glob":"glob(${1:string|array(string) glob}, ${2:string|array(string) str})",
"gmtime":"gmtime(${1:int timestamp})",
"hardlink":"hardlink(${1:string from}, ${2:string to})",
"has_index":"has_index(${1:mixed haystack}, ${2:mixed needle})",
"has_prefix":"has_prefix(${1:string|object s}, ${2:string prefix})",
"has_suffix":"has_suffix(${1:string s}, ${2:string prefix})",
"has_value":"has_value(${1:mixed haystack}, ${2:mixed needle})",
"hash":"hash(${1:string s}${2:, void|int max})",
"hash_value":"hash_value(${1:mixed value})",
"indices":"indices(${1:string|array|mapping|multiset|object x})",
"initgroups":"initgroups",
"innetgr":"innetgr(${1:string netgroup}${2:, string|void machine}${3:, string|void user}${4:, string|void domain})",
"int2char":"int2char(${1:int n})",
"int2hex":"int2hex(${1:int n})",
"intp":"intp(${1:mixed arg})",
"is_absolute_path":"is_absolute_path(${1:string p})",
"kill":"kill(${1:int pid}, ${2:int signal})",
"limit":"limit(${1:int|float|object minval}, ${2:int|float|object x}, ${3:int|float|object maxval})",
"listxattr":"listxattr(${1:string file}${2:, ${3:void|bool symlink}})",
"load_module":"load_module(${1:string module_name})",
"localtime":"localtime(${1:int timestamp})",
"log":"log(${1:int|float f})",
"lower_case":"lower_case(${1:string|int string_or_char})",
"m_delete":"m_delete(${1:mapping}, ${2:mixed key})",
"map":"map(${1:mixed arr}, ${2:void|mixed fun}${3:, ${4:mixed ... extra}})",
"mappingp":"mappingp(${1:mixed val})",
"master":"master()",
"max":"max(${1:mixed args}${2:, ${3:mixed more}})",
"min":"min(${1:mixed args}${2:, ${3:mixed more}})",
"mkdir":"mkdir(${1:string dirname}${2:, ${3:void|int mode}})",
"mkmapping":"mkmapping(${1:array ind}, ${2:array val})",
"mkmultiset":"mkmultiset(${1:array a})",
"mktime":"mktime(${1:mapping(string:int)|int tm_or_sec}, ${2:int min}, ${3:int hour}, ${4:int mday}, ${5:int mon}, ${6:int year}${7:, int|void isdst}${8:, int|void tz})",
"multisetp":"multisetp(${1:mixed val})",
"mv":"mv(${1:string from}, ${2:string to})",
"normalize_path":"normalize_path(${1:string path})",
"object_program" : "object_program(${1:this})",
"object_variablep" :"object_variablep(${1:object o}, ${2:string var})",
"objectp" : "objectp(${1:mixed arg})",
"pow" : "pow(${1:float|int|object n}, ${2:float|int|object x})",
"programp" : "programp(${1:mixed arg})",
"query_num_arg" : "query_num_arg()",
"random" : "random(${1:int max})",
"random_seed" : "random_seed(${1:int seed})",
"random_string" : "random_string(${1:int length})",
"remove_call_out" : "remove_call_out(${1:function(:void) f}, ${2:float|int delay}${3:, ${4:mixed ... args}})",
"removexattr" : "removexattr(${1:string file}, ${2:string attr}${3:, ${4:void|bool symlink}})",
"replace" : "replace(${1:string data}, ${2:string from}, ${3:string to})",
"sizeof" : "sizeof(${1:mixed args})",
"stringp" : "stringp(${1:mixed arg})",
"sprintf" : "sprintf(\\\"${1:format}\\\"${2:, ${3:mixed ... args}})",
"write" : "write(\\\"${1:format}\\\\n\\\"${2:, ${3:mixed ... args}});",
"werror" : "werror(\\\"${1:format}\\\\n\\\"${2:, ${3:mixed ... args}});",
"utf8_to_string" : "utf8_to_string(${1:string str})",
"string_to_utf8" : "string_to_utf8(${1:string str})",
"search" : "search(${1:mixed haystack}, ${2:mixed needle}${3:, mixed|void start})",
"sscanf" : "sscanf(${1:string data}, ${2:string format}, ${3:mixed ... lvalues})",
"undefinedp" : "undefinedp(${1:mixed val})",
"upper_case" : "upper_case(${1:string s})",
"zero_type" : "zero_type(${1:mixed val})",
// Parser.XML.Tree
/*
"->get_attributes" : "->get_attributes()",
"->get_children" : "->get_children()",
"->get_first_element" : "->get_first_element()",
"->get_full_name" : "->get_full_name()",
"->get_node_type" : "->get_node_type()",
"->get_tag_name" : "->get_tag_name()",
"->value_of_node" : "->value_of_node()"
*/
]);
mapping classes = ([
"Roxen.http_encode_url" : "Roxen.http_encode_url(${1:string url})",
"Stdio.write_file" : "Stdio.write_file(${1:string filename}, ${2:string content})",
"Stdio.read_file" : "Stdio.read_file(${1:string filename})",
"Stdio.exist" : "Stdio.exist(${1:string filename})",
"Protocols.HTTP.Query" : "Protocols.HTTP.Query",
"Parser.XML.Tree" : "Parser.XML.Tree",
"Parser.HTML" : "Parser.HTML",
"trim_all_whites" : "String.trim_all_whites(${1:mixed val})",
"Standards.JSON.decode" : "Standards.JSON.decode(${1:string data})",
"Standards.JSON.encode" : "Standards.JSON.encode(${1:mixed data})"
]);
mapping macros = ([
"define" : "#define ${1:WHAT}",
"include" : "#include <${1:WHAT}>"
]);
mapping userdef = ([
]);
#if 0
mapping all_funcs = ([
"`!":`!,
"`!=":`!=,
"`%":`%,
"`&":`&,
"`()":`(),
"`*":`*,
"`+":`+,
"`-":`-,
"`->":`->,
"`->=":`->=,
"`/":`/,
"`<":`<,
"`<<":`<<,
"`<=":`<=,
"`==":`==,
"`>":`>,
"`>=":`>=,
"`>>":`>>,
"`[..]":`[..],
"`[]":`[],
"`[]=":`[]=,
"`^":`^,
"`|":`|,
"`~":`~,
"abs":abs,
"acos":acos,
"acosh":acosh,
"add_constant":add_constant,
"add_include_path":add_include_path,
"add_module_path":add_module_path,
"add_program_path":add_program_path,
"aggregate":aggregate,
"aggregate_mapping":aggregate_mapping,
"aggregate_multiset":aggregate_multiset,
"alarm":alarm,
"all_constants":all_constants,
"all_threads":all_threads,
"allocate":allocate,
"array_sscanf":array_sscanf,
"arrayp":arrayp,
"asin":asin,
"asinh":asinh,
"atan":atan,
"atan2":atan2,
"atanh":atanh,
"atexit":atexit,
"backtrace":backtrace,
"basename":basename,
"basetype":basetype,
"bool":bool,
"call_function":call_function,
"call_out":call_out,
"call_out_info":call_out_info,
"callablep":callablep,
"cd":cd,
"ceil":ceil,
"chmod":chmod,
"chown":chown,
"chroot":chroot,
"cleargroups":cleargroups,
"closelog":closelog,
"column":column,
"combine_path":combine_path,
"combine_path_amigaos":combine_path_amigaos,
"combine_path_nt":combine_path_nt,
"combine_path_unix":combine_path_unix,
"compile":compile,
"compile_file":compile_file,
"compile_string":compile_string,
"copy_value":copy_value,
"cos":cos,
"cosh":cosh,
"cpp":cpp,
"crypt":crypt,
"ctime":ctime,
"decode_value":decode_value,
"delay":delay,
"describe_backtrace":describe_backtrace,
"describe_error":describe_error,
"destruct":destruct,
"destructedp":destructedp,
"dirname":dirname,
"encode_value":encode_value,
"encode_value_canonic":encode_value_canonic,
"enumerate":enumerate,
"equal":equal,
"errno":errno,
"error":error,
"exece":exece,
"exit":exit,
"exp":exp,
"explode_path":explode_path,
"false":false,
"file_stat":file_stat,
"file_truncate":file_truncate,
"filesystem_stat":filesystem_stat,
"filter":filter,
"find_call_out":find_call_out,
"floatp":floatp,
"floor":floor,
"fork":fork,
"function_name":function_name,
"function_object":function_object,
"function_program":function_program,
"functionp":functionp,
"gc":gc,
"get_active_compilation_handler":get_active_compilation_handler,
"get_active_error_handler":get_active_error_handler,
"get_all_groups":get_all_groups,
"get_all_users":get_all_users,
"get_backtrace":get_backtrace,
"get_dir":get_dir,
"get_groups_for_user":get_groups_for_user,
"get_iterator":get_iterator,
"get_weak_flag":get_weak_flag,
"getcwd":getcwd,
"getegid":getegid,
"getenv":getenv,
"geteuid":geteuid,
"getgid":getgid,
"getgrgid":getgrgid,
"getgrnam":getgrnam,
"getgroups":getgroups,
"gethostbyaddr":gethostbyaddr,
"gethostbyname":gethostbyname,
"gethostname":gethostname,
"gethrtime":gethrtime,
"gethrvtime":gethrvtime,
"getpgrp":getpgrp,
"getpid":getpid,
"getppid":getppid,
"getpwnam":getpwnam,
"getpwuid":getpwuid,
"getsid":getsid,
"getuid":getuid,
"getxattr":getxattr,
"glob":glob,
"gmtime":gmtime,
"hardlink":hardlink,
"has_index":has_index,
"has_prefix":has_prefix,
"has_suffix":has_suffix,
"has_value":has_value,
"hash":hash,
"hash_value":hash_value,
"indices":indices,
"initgroups":initgroups,
"innetgr":innetgr,
"int2char":int2char,
"int2hex":int2hex,
"intp":intp,
"is_absolute_path":is_absolute_path,
"kill":kill,
"limit":limit,
"listxattr":listxattr,
"load_module":load_module,
"localtime":localtime,
"log":log,
"lower_case":lower_case,
"m_delete":m_delete,
"map":map,
"mappingp":mappingp,
"master":master,
"max":max,
"min":min,
"mkdir":mkdir,
"mkmapping":mkmapping,
"mkmultiset":mkmultiset,
"mktime":mktime,
"multisetp":multisetp,
"mv":mv,
"next_object":next_object,
"normalize_path":normalize_path,
"object_program":object_program,
"object_variablep":object_variablep,
"objectp":objectp,
"openlog":openlog,
"pow":pow,
"programp":programp,
"putenv":putenv,
"query_num_arg":query_num_arg,
"random":random,
"random_seed":random_seed,
"random_string":random_string,
"readlink":readlink,
"remove_call_out":remove_call_out,
"remove_include_path":remove_include_path,
"remove_module_path":remove_module_path,
"remove_program_path":remove_program_path,
"removexattr":removexattr,
"replace":replace,
"replace_master":replace_master,
"resolvepath":resolvepath,
"reverse":reverse,
"rm":rm,
"round":round,
"rows":rows,
"search":search,
"set_priority":set_priority,
"set_weak_flag":set_weak_flag,
"setegid":setegid,
"seteuid":seteuid,
"setgid":setgid,
"setgroups":setgroups,
"setpgrp":setpgrp,
"setresgid":setresgid,
"setresuid":setresuid,
"setsid":setsid,
"setuid":setuid,
"setxattr":setxattr,
"sgn":sgn,
"signal":signal,
"signame":signame,
"signum":signum,
"sin":sin,
"sinh":sinh,
"sizeof":sizeof,
"sleep":sleep,
"sort":sort,
"sprintf":sprintf,
"sprintf_args":sprintf_args,
"sprintf_format":sprintf_format,
"sqrt":sqrt,
"strerror":strerror,
"strict_sprintf_format":strict_sprintf_format,
"string_to_unicode":string_to_unicode,
"string_to_utf8":string_to_utf8,
"stringp":stringp,
"strlen":strlen,
"symlink":symlink,
"syslog":syslog,
"tan":tan,
"tanh":tanh,
"this_object":this_object,
"this_thread":this_thread,
"thread_create":thread_create,
"thread_local":thread_local,
"throw":throw,
"time":time,
"trace":trace,
"true":true,
"ualarm":ualarm,
"umask":umask,
"uname":uname,
"undefinedp":undefinedp,
"unicode_to_string":unicode_to_string,
"upper_case":upper_case,
"utf8_to_string":utf8_to_string,
"utime":utime,
"values":values,
"version":version,
"werror":werror,
"write":write,
"zero_type":zero_type
]);
#endif
int main(int argc, array(string) argv)
{
#if 0
object m = master ();
foreach (indices (all_funcs), string fn) {
if (!functionp (all_funcs[fn])) {
write ("%s is not a function\n", fn);
continue;
}
object doc;
if (mixed e = catch (doc = m->show_doc (all_funcs[fn])))
write ("Error resolving: %s\n", fn);
else {
if (doc) {
write("%s: %O\n", fn, doc);
}
else {
mixed e = catch {
all_funcs[fn]();
};
if (e) {
write ("Err: %s\n", describe_error (e));
}
}
}
}
return 0;
#endif
array(string) buf = ({});
mapping all = builtins + macros + userdef + classes;
foreach (sort(indices(all)), string k) {
buf += ({ sprintf(" {\"trigger\":\"%s\",\"contents\":\"%s\"}",
k, all[k]) });
}
string macro = #"{
\"scope\": \"source.pike - variable.other.pike\",
\"completions\":
[
\"pike\",
%s
]
}";
Stdio.write_file("Pike.sublime-completions", sprintf(macro, buf*",\n"));
werror("%O\n", builtins);
return 0;
}