summaryrefslogtreecommitdiffstats
path: root/misc/syntax/puppet.syntax
blob: 71cb263860da097108df38ccc6c6247b9ab01116 (plain)
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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
# Puppet syntax file for GNU Midnight Commander
# Authors: Sergey Zhuga <sergey.zhuga@gmail.com>
#          Phil Friderici <phil.friderici@i-tee.de>

context default

# Operators

  keyword =>  yellow
  keyword !=  yellow
  keyword \+= yellow
  keyword \+> yellow
  keyword ->  yellow
  keyword ~>  yellow
  keyword <-  yellow
  keyword <~  yellow
  keyword =   yellow

# Exported/Virtual Resources & Collectors

  keyword @   yellow
  keyword |>  yellow
  keyword |>> yellow
  keyword <<| yellow
  keyword <|  yellow

# Braces

  keyword { brightcyan
  keyword } brightcyan
  keyword ( brightcyan
  keyword ) brightcyan
  keyword [ brightcyan
  keyword ] brightcyan
  keyword , brightcyan
  keyword : brightcyan

# Booleans

  keyword whole false brightred
  keyword whole FALSE brightred
  keyword whole nil   brightred
  keyword whole NIL   brightred
  keyword whole undef brightred
  keyword whole UNDEF brightred
  keyword whole true  brightred
  keyword whole TRUE  brightred

# Variables

  keyword wholeright $+\:\:+\:\:+\:\:+\:\:+ white
  keyword wholeright $+\:\:+\:\:+\:\:+ white
  keyword wholeright $+\:\:+\:\:+ white
  keyword wholeright $+\:\:+ white
  keyword wholeright $+ white

# Parameters

  keyword whole absent magenta
  keyword whole aclinherit magenta
  keyword whole aclmode magenta
  keyword whole action_url magenta
  keyword whole active_checks_enabled magenta
  keyword whole address magenta
  keyword whole address1 magenta
  keyword whole address2 magenta
  keyword whole address3 magenta
  keyword whole address4 magenta
  keyword whole address5 magenta
  keyword whole address6 magenta
  keyword whole admin magenta
  keyword whole adminfile magenta
  keyword whole age magenta
  keyword whole alias magenta
  keyword whole allowcdrom magenta
  keyword whole allowdupe magenta
  keyword whole allowed_trunk_vlans magenta
  keyword whole allow_root magenta
  keyword whole arguments magenta
  keyword whole atboot magenta
  keyword whole atime magenta
  keyword whole attribute_membership magenta
  keyword whole attributes magenta
  keyword whole auth_class magenta
  keyword whole authenticate_user magenta
  keyword whole auth_membership magenta
  keyword whole auths magenta
  keyword whole auth_type magenta
  keyword whole autoboot magenta
  keyword whole backup magenta
  keyword whole baseurl magenta
  keyword whole binary magenta
  keyword whole blockdevice magenta
  keyword whole canmount magenta
  keyword whole can_submit_commands magenta
  keyword whole category magenta
  keyword whole changes magenta
  keyword whole check_command magenta
  keyword whole check_freshness magenta
  keyword whole check_interval magenta
  keyword whole check_period magenta
  keyword whole checksum magenta
  keyword whole clone magenta
  keyword whole command magenta
  keyword whole command_line magenta
  keyword whole command_name magenta
  keyword whole comment magenta
  keyword whole compression magenta
  keyword whole configfiles magenta
  keyword whole contactgroup_members magenta
  keyword whole contactgroup_name magenta
  keyword whole contactgroups magenta
  keyword whole contact_groups magenta
  keyword whole contact_name magenta
  keyword whole contacts magenta
  keyword whole content magenta
  keyword whole context magenta
  keyword whole control magenta
  keyword whole copies magenta
  keyword whole cost magenta
  keyword whole create_args magenta
  keyword whole creates magenta
  keyword whole ctime magenta
  keyword whole cwd magenta
  keyword whole dataset magenta
  keyword whole dependency_period magenta
  keyword whole dependent_hostgroup_name magenta
  keyword whole dependent_host_name magenta
  keyword whole dependent_service_description magenta
  keyword whole descr magenta
  keyword whole description magenta
  keyword whole device magenta
  keyword whole devices magenta
  keyword whole device_url magenta
  keyword whole disk magenta
  keyword whole display_name magenta
  keyword whole ds_name magenta
  keyword whole ds_type magenta
  keyword whole dump magenta
  keyword whole duplex magenta
  keyword whole email magenta
  keyword whole enable magenta
  keyword whole enabled magenta
  keyword whole enablegroups magenta
  keyword whole en_address magenta
  keyword whole encapsulation magenta
  keyword whole ensure magenta
  keyword whole escalation_options magenta
  keyword whole escalation_period magenta
  keyword whole etherchannel magenta
  keyword whole event_handler magenta
  keyword whole event_handler_enabled magenta
  keyword whole exclude magenta
  keyword whole exec magenta
  keyword whole execution_failure_criteria magenta
  keyword whole expiry magenta
  keyword whole failovermethod magenta
  keyword whole failure_prediction_enabled magenta
  keyword whole first_notification magenta
  keyword whole first_notification_delay magenta
  keyword whole flap_detection_enabled magenta
  keyword whole flap_detection_options magenta
  keyword whole flavor magenta
  keyword whole force magenta
  keyword whole freshness_threshold magenta
  keyword whole friday magenta
  keyword whole fstype magenta
  keyword whole gid magenta
  keyword whole gpgcheck magenta
  keyword whole gpgkey magenta
  keyword whole group magenta
  keyword whole groups magenta
  keyword whole hasrestart magenta
  keyword whole hasstatus magenta
  keyword whole high_flap_threshold magenta
  keyword whole home magenta
  keyword whole host_aliases magenta
  keyword whole hostgroup_members magenta
  keyword whole hostgroup_name magenta
  keyword whole hostgroups magenta
  keyword whole host_name magenta
  keyword whole host_notification_commands magenta
  keyword whole host_notification_options magenta
  keyword whole host_notification_period magenta
  keyword whole host_notifications_enabled magenta
  keyword whole hour magenta
  keyword whole http_caching magenta
  keyword whole ia_load_module magenta
  keyword whole icon_image magenta
  keyword whole icon_image_alt magenta
  keyword whole id magenta
  keyword whole ignore magenta
  keyword whole incl magenta
  keyword whole includepkgs magenta
  keyword whole inherit magenta
  keyword whole inherits_parent magenta
  keyword whole initial_state magenta
  keyword whole install_args magenta
  keyword whole install_options magenta
  keyword whole instance magenta
  keyword whole ip magenta
  keyword whole ipaddress magenta
  keyword whole ip_address magenta
  keyword whole iptype magenta
  keyword whole is_volatile magenta
  keyword whole keepalive magenta
  keyword whole key magenta
  keyword whole key_membership magenta
  keyword whole keys magenta
  keyword whole k_of_n magenta
  keyword whole last_notification magenta
  keyword whole lens magenta
  keyword whole links magenta
  keyword whole load_path magenta
  keyword whole log magenta
  keyword whole logbias magenta
  keyword whole logoutput magenta
  keyword whole low_flap_threshold magenta
  keyword whole mailserver magenta
  keyword whole managehome magenta
  keyword whole manifest magenta
  keyword whole matches magenta
  keyword whole max_check_attempts magenta
  keyword whole mechanisms magenta
  keyword whole members magenta
  keyword whole membership magenta
  keyword whole message magenta
  keyword whole metadata_expire magenta
  keyword whole minute magenta
  keyword whole mirror magenta
  keyword whole mirrorlist magenta
  keyword whole mode magenta
  keyword whole monday magenta
  keyword whole month magenta
  keyword whole monthday magenta
  keyword whole mountpoint magenta
  keyword whole mtime magenta
  keyword whole _naginator_name magenta
  keyword whole name magenta
  keyword whole native_vlan magenta
  keyword whole nbmand magenta
  keyword whole normal_check_interval magenta
  keyword whole notes magenta
  keyword whole notes_url magenta
  keyword whole notification_failure_criteria magenta
  keyword whole notification_interval magenta
  keyword whole notification_options magenta
  keyword whole notification_period magenta
  keyword whole notifications_enabled magenta
  keyword whole obsess_over_host magenta
  keyword whole obsess_over_service magenta
  keyword whole onlyif magenta
  keyword whole options magenta
  keyword whole owner magenta
  keyword whole pager magenta
  keyword whole parallelize_check magenta
  keyword whole parents magenta
  keyword whole pass magenta
  keyword whole passive_checks_enabled magenta
  keyword whole password magenta
  keyword whole password_max_age magenta
  keyword whole password_min_age magenta
  keyword whole path magenta
  keyword whole pattern magenta
  keyword whole period magenta
  keyword whole periodmatch magenta
  keyword whole persistent magenta
  keyword whole platform magenta
  keyword whole pool magenta
  keyword whole port magenta
  keyword whole primarycache magenta
  keyword whole principals magenta
  keyword whole priority magenta
  keyword whole process_perf_data magenta
  keyword whole profile_membership magenta
  keyword whole profiles magenta
  keyword whole project magenta
  keyword whole protect magenta
  keyword whole provider magenta
  keyword whole proxy magenta
  keyword whole proxy_password magenta
  keyword whole proxy_username magenta
  keyword whole purge magenta
  keyword whole quota magenta
  keyword whole raid_parity magenta
  keyword whole raidz magenta
  keyword whole range magenta
  keyword whole readonly magenta
  keyword whole realhostname magenta
  keyword whole realname magenta
  keyword whole recipient magenta
  keyword whole recordsize magenta
  keyword whole recurse magenta
  keyword whole recurselimit magenta
  keyword whole refquota magenta
  keyword whole refreservation magenta
  keyword whole refresh magenta
  keyword whole refreshonly magenta
  keyword whole register magenta
  keyword whole remounts magenta
  keyword whole repeat magenta
  keyword whole replace magenta
  keyword whole reservation magenta
  keyword whole responsefile magenta
  keyword whole restart magenta
  keyword whole retain_nonstatus_information magenta
  keyword whole retain_status_information magenta
  keyword whole retry_check_interval magenta
  keyword whole retry_interval magenta
  keyword whole returns magenta
  keyword whole rmdirs magenta
  keyword whole role_membership magenta
  keyword whole roles magenta
  keyword whole root magenta
  keyword whole rule magenta
  keyword whole saturday magenta
  keyword whole secondarycache magenta
  keyword whole selinux_ignore_defaults magenta
  keyword whole selmoduledir magenta
  keyword whole selmodulepath magenta
  keyword whole selrange magenta
  keyword whole selrole magenta
  keyword whole seltype magenta
  keyword whole seluser magenta
  keyword whole server magenta
  keyword whole service_description magenta
  keyword whole servicegroup_members magenta
  keyword whole servicegroup_name magenta
  keyword whole servicegroups magenta
  keyword whole service_notification_commands magenta
  keyword whole service_notification_options magenta
  keyword whole service_notification_period magenta
  keyword whole service_notifications_enabled magenta
  keyword whole session_owner magenta
  keyword whole setuid magenta
  keyword whole shared magenta
  keyword whole shareiscsi magenta
  keyword whole sharenfs magenta
  keyword whole shares magenta
  keyword whole sharesmb magenta
  keyword whole shell magenta
  keyword whole size magenta
  keyword whole snapdir magenta
  keyword whole source magenta
  keyword whole sourceselect magenta
  keyword whole spare magenta
  keyword whole special magenta
  keyword whole speed magenta
  keyword whole stalking_options magenta
  keyword whole start magenta
  keyword whole status magenta
  keyword whole statusmap_image magenta
  keyword whole stop magenta
  keyword whole sunday magenta
  keyword whole syncversion magenta
  keyword whole sysidcfg magenta
  keyword whole system magenta
  keyword whole target magenta
  keyword whole thursday magenta
  keyword whole timeout magenta
  keyword whole timeperiod_name magenta
  keyword whole tries magenta
  keyword whole trigger magenta
  keyword whole try_sleep magenta
  keyword whole tuesday magenta
  keyword whole type magenta
  keyword whole type_check magenta
  keyword whole uid magenta
  keyword whole unless magenta
  keyword whole unless_system_user magenta
  keyword whole url magenta
  keyword whole use magenta
  keyword whole user magenta
  keyword whole value magenta
  keyword whole vendor magenta
  keyword whole version magenta
  keyword whole volsize magenta
  keyword whole vrml_image magenta
  keyword whole vscan magenta
  keyword whole webserver magenta
  keyword whole wednesday magenta
  keyword whole weekday magenta
  keyword whole withpath magenta
  keyword whole working_dir magenta
  keyword whole xattr magenta
  keyword whole zoned magenta

# Meta parameters

  keyword whole alias brightmagenta
  keyword whole audit brightmagenta
  keyword whole before brightmagenta
  keyword whole check brightmagenta
  keyword whole consume brightmagenta
  keyword whole export brightmagenta
  keyword whole loglevel brightmagenta
  keyword whole noop brightmagenta
  keyword whole notify brightmagenta
  keyword whole require brightmagenta
  keyword whole schedule brightmagenta
  keyword whole stage brightmagenta
  keyword whole subscribe brightmagenta
  keyword whole tag brightmagenta

# Types

  keyword whole augeas red
  keyword whole computer red
  keyword whole cron red
  keyword whole exec red
  keyword whole file red
  keyword whole filebucket red
  keyword whole group red
  keyword whole host red
  keyword whole interface red
  keyword whole k5login red
  keyword whole macauthorization red
  keyword whole mailalias red
  keyword whole maillist red
  keyword whole mcx red
  keyword whole mount red
  keyword whole nagios_command red
  keyword whole nagios_contact red
  keyword whole nagios_contactgroup red
  keyword whole nagios_host red
  keyword whole nagios_hostdependency red
  keyword whole nagios_hostescalation red
  keyword whole nagios_hostextinfo red
  keyword whole nagios_hostgroup red
  keyword whole nagios_service red
  keyword whole nagios_servicedependency red
  keyword whole nagios_serviceescalation red
  keyword whole nagios_serviceextinfo red
  keyword whole nagios_servicegroup red
  keyword whole nagios_timeperiod red
  keyword whole notify red
  keyword whole package red
  keyword whole resources red
  keyword whole router red
  keyword whole schedule red
  keyword whole scheduled_task red
  keyword whole selboolean red
  keyword whole selmodule red
  keyword whole service red
  keyword whole ssh_authorized_key red
  keyword whole sshkey red
  keyword whole stage red
  keyword whole tidy red
  keyword whole user red
  keyword whole vlan red
  keyword whole yumrepo red
  keyword whole zfs red
  keyword whole zone red
  keyword whole zpool red

# Functions

  keyword whole alert brightred
  keyword whole assert_type brightred
  keyword whole contain brightred
  keyword whole create_resources brightred
  keyword whole crit brightred
  keyword whole debug brightred
  keyword whole defined brightred
  keyword whole digest brightred
  keyword whole each brightred
  keyword whole emerg brightred
  keyword whole epp brightred
  keyword whole err brightred
  keyword whole extlookup brightred
  keyword whole fail brightred
  keyword whole file brightred
  keyword whole filter brightred
  keyword whole fqdn_rand brightred
  keyword whole generate brightred
  keyword whole hiera brightred
  keyword whole hiera_array brightred
  keyword whole hiera_hash brightred
  keyword whole hiera_include brightred
  keyword whole include brightred
  keyword whole info brightred
  keyword whole inline_epp brightred
  keyword whole inline_template brightred
  keyword whole lookup brightred
  keyword whole map brightred
  keyword whole match brightred
  keyword whole md5 brightred
  keyword whole notice brightred
  keyword whole realize brightred
  keyword whole reduce brightred
  keyword whole regsubst brightred
  keyword whole require brightred
  keyword whole search brightred
  keyword whole scanf brightred
  keyword whole sha1 brightred
  keyword whole shellquote brightred
  keyword whole slice brightred
  keyword whole split brightred
  keyword whole sprintf brightred
  keyword whole tag brightred
  keyword whole tagged brightred
  keyword whole template brightred
  keyword whole versioncmp brightred
  keyword whole warning brightred
  keyword whole with brightred

# Conditional Statements and Expressions

  keyword whole ? yellow
  keyword whole and yellow
  keyword whole case yellow
  keyword whole default yellow
  keyword whole else yellow
  keyword whole elsif yellow
  keyword whole if yellow
  keyword whole in yellow
  keyword whole or yellow

# Reserved words (reserved for future use)

  keyword whole application yellow
  keyword whole attr yellow
  keyword whole consumes yellow
  keyword whole environment yellow
  keyword whole function yellow
  keyword whole import yellow
  keyword whole private yellow
  keyword whole produces yellow
  keyword whole type yellow

# Language keywords

  keyword whole absent yellow
  keyword whole class red
  keyword whole define yellow
  keyword whole directory yellow
  keyword whole include yellow
  keyword whole inherits yellow
  keyword whole installed yellow
  keyword whole latest yellow
  keyword whole link yellow
  keyword whole node yellow
  keyword whole on_failure yellow
  keyword whole present yellow
  keyword whole running yellow

# Stdlib 4.10.0 Types

  keyword whole file_line red

# Stdlib 4.10.0 Functions

  keyword whole abs brightred
  keyword whole any2array brightred
  keyword whole base64 brightred
  keyword whole basename brightred
  keyword whole bool2num brightred
  keyword whole bool2str brightred
  keyword whole capitalize brightred
  keyword whole ceiling brightred
  keyword whole chomp brightred
  keyword whole chop brightred
  keyword whole clamp brightred
  keyword whole concat brightred
  keyword whole convert_base brightred
  keyword whole count brightred
  keyword whole defined_with_params brightred
  keyword whole delete brightred
  keyword whole delete_at brightred
  keyword whole delete_values brightred
  keyword whole delete_undef_values brightred
  keyword whole difference brightred
  keyword whole dirname brightred
  keyword whole dos2unix brightred
  keyword whole downcase brightred
  keyword whole empty brightred
  keyword whole ensure_packages brightred
  keyword whole ensure_resource brightred
  keyword whole flatten brightred
  keyword whole floor brightred
  keyword whole fqdn_rand_string brightred
  keyword whole fqdn_rotate brightred
  keyword whole get_module_path brightred
  keyword whole getparam brightred
  keyword whole getvar brightred
  keyword whole grep brightred
  keyword whole has_interface_with brightred
  keyword whole has_ip_address brightred
  keyword whole has_ip_network brightred
  keyword whole has_key brightred
  keyword whole hash brightred
  keyword whole intersection brightred
  keyword whole is_a brightred
  keyword whole is_absolute_path brightred
  keyword whole is_array brightred
  keyword whole is_bool brightred
  keyword whole is_domain_name brightred
  keyword whole is_float brightred
  keyword whole is_function_available brightred
  keyword whole is_hash brightred
  keyword whole is_integer brightred
  keyword whole is_ip_address brightred
  keyword whole is_mac_address brightred
  keyword whole is_numeric brightred
  keyword whole is_string brightred
  keyword whole join brightred
  keyword whole join_keys_to_values brightred
  keyword whole keys brightred
  keyword whole loadyaml brightred
  keyword whole load_module_metadata brightred
  keyword whole lstrip brightred
  keyword whole max brightred
  keyword whole member brightred
  keyword whole merge brightred
  keyword whole min brightred
  keyword whole num2bool brightred
  keyword whole parsejson brightred
  keyword whole parseyaml brightred
  keyword whole pick brightred
  keyword whole pick_default brightred
  keyword whole prefix brightred
  keyword whole assert_private brightred
  keyword whole pw_hash brightred
  keyword whole range brightred
  keyword whole reject brightred
  keyword whole reverse brightred
  keyword whole rstrip brightred
  keyword whole seeded_rand brightred
  keyword whole shuffle brightred
  keyword whole size brightred
  keyword whole sort brightred
  keyword whole squeeze brightred
  keyword whole str2bool brightred
  keyword whole str2saltedsha512 brightred
  keyword whole strftime brightred
  keyword whole strip brightred
  keyword whole suffix brightred
  keyword whole swapcase brightred
  keyword whole time brightred
  keyword whole to_bytes brightred
  keyword whole try_get_value brightred
  keyword whole type3x brightred
  keyword whole type_of brightred
  keyword whole union brightred
  keyword whole unique brightred
  keyword whole unix2dos brightred
  keyword whole upcase brightred
  keyword whole uriescape brightred
  keyword whole validate_absolute_path brightred
  keyword whole validate_array brightred
  keyword whole validate_augeas brightred
  keyword whole validate_bool brightred
  keyword whole validate_cmd brightred
  keyword whole validate_hash brightred
  keyword whole validate_integer brightred
  keyword whole validate_ip_address brightred
  keyword whole validate_numeric brightred
  keyword whole validate_re brightred
  keyword whole validate_slength brightred
  keyword whole validate_string brightred
  keyword whole values brightred
  keyword whole values_at brightred
  keyword whole zip brightred

# Other contexts

context # \n brown
  spellcheck

context " " green
  keyword \\" brightgreen
  keyword \\\\ brightgreen
  keyword wholeright ${+\:\:+\:\:+\:\:+\:\:+} white
  keyword wholeright ${+\:\:+\:\:+\:\:+} white
  keyword wholeright ${+\:\:+\:\:+} white
  keyword wholeright ${+\:\:+} white
  keyword wholeright ${+} white
  keyword wholeright $+ white

context ' ' brightgreen
  keyword \\' green
  keyword \\\\ green

context exclusive ` ` white black