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
3

V'íca£ã@südZddlZddlmZmZmZmZmZmZm	Z	m
Z
ddlmZm
Z
mZmZmZmZmZmZmZmZmZmZddlmZddlmZddd	d
ddd
dddddddddddddgZGdd„deƒZGdd„deƒZGdd	„d	eƒZdd„Z Gd d
„d
eƒZ!Gd!d„deƒZ"Gd"d„deƒZ#Gd#d
„d
eƒZ$Gd$d„deƒZ%Gd%d„deƒZ&Gd&d„deƒZ'Gd'd„deƒZ(Gd(d„deƒZ)Gd)d„deƒZ*Gd*d„deƒZ+Gd+d„deƒZ,Gd,d„deƒZ-Gd-d„deƒZ.Gd.d„deƒZ/Gd/d„deƒZ0Gd0d„deƒZ1dS)1zÙ
    pygments.lexers.configs
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for configuration file formats.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
éN)ÚExtendedRegexLexerÚ
RegexLexerÚdefaultÚwordsÚbygroupsÚincludeÚusingÚline_re)ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚLiteralÚErrorÚGeneric)Ú	BashLexer)Ú	JsonLexerÚIniLexerÚRegeditLexerÚPropertiesLexerÚKconfigLexerÚCfengine3LexerÚApacheConfLexerÚSquidConfLexerÚNginxConfLexerÚLighttpdConfLexerÚDockerLexerÚTerraformLexerÚTermcapLexerÚ
TerminfoLexerÚPkgConfigLexerÚPacmanConfLexerÚAugeasLexerÚ	TOMLLexerÚNestedTextLexerÚSingularityLexerÚUnixConfigLexerc@sÈeZdZdZdZdddgZdddd	d
ddd
dddddddgZddgZdefde	j
fdeeeƒfdee
jeeeeeeƒdfdee
jeeeeƒfde
jfgdefdeeeeeƒfded fgd!œZd"d#„Zd$S)%rz5
    Lexer for configuration files in INI style.
    ZINIZiniÚcfgZdosiniz*.iniz*.cfgz*.infz
.editorconfigz	*.servicez*.socketz*.devicez*.mountz*.automountz*.swapz*.targetz*.pathz*.timerz*.slicez*.scopez
text/x-iniztext/infz\s+z[;#].*z(\[.*?\])([ \t]*)$u0(.*?)([  \t]*)([=:])([ \t]*)([^;#\n]*)(\\)(\s+)Úvalueu8(.*?)([ \t]*)([=:])([  \t]*)([^ ;#\n]*(?: +[^ ;#\n]+)*)z(.+?)$z(\s*)(.*)(\\)([ \t]*)z.*$z#pop)Úrootr-cCs2|jdƒ}|dkrdS|ddko0||ddkS)NÚ
éFrú[éú])Úfind)ÚtextZnpos©r6ú;/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/configs.pyÚanalyse_textBs
zIniLexer.analyse_textN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesrrÚSinglerr
rÚ	Attributerrr
Útokensr8r6r6r6r7rs,


c@s²eZdZdZdZdZdgZdgZdgZde	fde
fd	ejfd
e
eeejeƒfde
eje
ee
ƒdfd
e
eje
ee
ƒdfgdedfde
ejeeƒdfdedfedƒgdœZdd„ZdS)rzZ
    Lexer for Windows Registry files produced by regedit.

    .. versionadded:: 1.6
    Úregz8http://en.wikipedia.org/wiki/Windows_Registry#.REG_filesÚregistryz*.regztext/x-windows-registryzWindows Registry Editor.*z\s+z[;#].*z(\[)(-?)(HKEY_[A-Z_]+)(.*?\])$z)("(?:\\"|\\\\|[^"])+")([ \t]*)(=)([ \t]*)r-z(.*?)([ \t]*)(=)([ \t]*)ú-z#popz1(dword|hex(?:\([0-9a-fA-F]\))?)(:)([0-9a-fA-F,]+)z.+)r.r-cCs
|jdƒS)NzWindows Registry Editor)Ú
startswith)r5r6r6r7r8pszRegeditLexer.analyse_textN)r9r:r;r<r=Úurlr>r?r@r
rrrArr
rrÚBuiltinrBÚVariablerrrrrCr8r6r6r6r7rIs.c	@sšeZdZdZdZddgZdgZdgZdefde	j
fd	ejd
fdejfgde
eeeeeƒd
dfde
eeeeƒdfgdefde
eeeeƒfdedfgdœZdS)rz¦
    Lexer for configuration files in Java's properties format.

    Note: trailing whitespace counts as part of the value as per spec

    .. versionadded:: 1.4
    Z
PropertiesZ
propertiesZjpropertiesz*.propertiesztext/x-java-propertiesz\s+z
[!#].*|/{2}.*z([^\\\n]|\\.)*?(?=[ \f\t=:])Ú	separatorz.+?$z;([ \f\t]*)([=:]*)([ \f\t]*)(.*(?<!\\)(?:\\{2})*)(\\)(?!\\)$r-z#popz([ \f\t]*)([=:]*)([ \f\t]*)(.*)z,(\s*)(.*(?<!\\)(?:\\{2})*)(\\)(?!\\)([ \t]*)z.*$)r.rKr-N)r9r:r;r<r=r>r?r@rrrArrBrrrr
rCr6r6r6r7rts"

cCsBd}|dkrd}nd|d}|dkr,d}nd|}d|||fS)	Nééú+z{1,%d}r2Úz{%s}z(?:\t| %s\t| {%s})%s.*\nr6)ÚlevelZ	tab_widthZspace_repeatZlevel_repeatr6r6r7Ú
_rx_indentœsrQc@seZdZdZdZddddgZddd	d
gZdgZdZd
d„Z	dd„Z
defdej
fed:d$d%efd&ed'fd(ejfd)efd*efd+ejfd,ej
fd-ejfd.efgd/efe	d0ƒe	d1ƒe	d2ƒe	d3ƒe	d4ƒe	d5ƒe	d6ƒed7ƒg	e
d0ƒe
d1ƒe
d2ƒe
d3ƒe
d4ƒe
d5ƒe
d6ƒd8œ	Zd9S);rzC
    For Linux-style Kconfig files.

    .. versionadded:: 1.6
    ZKconfigZkconfigÚ
menuconfigzlinux-configz
kernel-configzKconfig*z*Config.in*zexternal.in*zstandard-modules.inztext/x-kconfigrcCst|ƒtjd|fS)Nzindent%s)rQrÚDoc)rPr6r6r7Úcall_indentÀszKconfigLexer.call_indentcCst|ƒtjfdtftdƒgS)Nz\s*\nz#pop:2)rQrrSr
r)rPr6r6r7Ú	do_indentÄszKconfigLexer.do_indentz\s+z#.*?\nÚmainmenuÚconfigÚchoiceÚ	endchoiceÚcommentÚmenuÚendmenuú
visible ifÚifÚendifÚsourceÚpromptÚselectú
depends onrÚrangeÚoptionz\b)Úsuffixz(---help---|help)[\t ]*\nÚhelpz;(bool|tristate|string|hex|int|defconfig_list|modules|env)\bz[!=&|]z[()]z[0-9]+z'(''|[^'])*'z"(""|[^"])*"z\S+z\s*\néééér0rMr2z#pop)	r.rgZindent7Zindent6Zindent5Zindent4Zindent3Zindent2Zindent1N)rVrWrRrXrYrZr[r\r]r^r_r`rarbrcrrdre)r9r:r;r<r=r>r?r@ÚflagsrTrUrrrArr
rrIrrrÚIntegerrÚDoubler
rrCr6r6r6r7r°sTc@sreZdZdZdZdZddgZdgZgZde	fde
eeeeeƒfd	e
eeeee
jeƒd
fde
eeeee
jƒfde
ee
jeeejeeeƒfd
e
ejeeeƒfdedfde
e
jeƒfde
e
jeƒfde
ejeƒfde
jfdefdefdefdejfdejfde
jfdefgdejdfdejfdedfdefd efgdejd!fd"ejdfd#ejfgd$edfd%efde
jfdefgd&œZd'S)(rzF
    Lexer for CFEngine3 policy files.

    .. versionadded:: 1.5
    Z	CFEngine3zhttp://cfengine.orgZ	cfengine3Zcf3z*.cfz#.*?\nz(body)(\s+)(\S+)(\s+)(control)z%(body|bundle)(\s+)(\S+)(\s+)(\w+)(\()Úarglistz!(body|bundle)(\s+)(\S+)(\s+)(\w+)z7(")([^"]+)(")(\s+)(string|slist|int|real)(\s*)(=>)(\s*)z(\S+)(\s*)(=>)(\s*)ú"Ústringz	(\w+)(\()z([\w.!&|()]+)(::)z(\w+)(:)z@[{(][^)}]+[})]z[(){},;]z=>z->z\d+\.\d+z\d+z\w+z\s+z\$[{(]Úinterpolz\\.z#popz\nÚ.z#pushz[})]z	[^${()}]+z\)ú,)r.rqrrroN)r9r:r;r<r=rHr>r?r@rrr
rrÚFunctionrrJÚTyperÚReservedr
rÚClassÚDeclarationrÚFloatrmÚInterpolÚEscaperCr6r6r6r7rýsV




c@sÆeZdZdZdZdddgZdddgZd	gZej	ej
BZd
efde
fdeejeeejƒfd
eejejƒfdejdfdefgdefdedfdefdefdefdefdejfdefdejfdefg
dœZdS)rzo
    Lexer for configuration files following the Apache config file
    format.

    .. versionadded:: 0.6
    Z
ApacheConfZ
apacheconfZaconfZapachez	.htaccesszapache.confzapache2.confztext/x-apacheconfz\s+z#(.*\\\n)+.*$|(#.*?)$z"(<[^\s>/][^\s>]*)(?:(\s+)(.*))?(>)z(</[^\s>]+)(>)z[a-z]\w*r-z\.+z\\\nz\n+z#popz\\z[^\S\n]+z\d+\.\d+\.\d+\.\d+(?:/\d+)?z\d+z/([*a-z0-9][*\w./-]+)z¢(on|off|none|any|all|double|email|dns|min|minimal|os|productonly|full|emerg|alert|crit|error|warn|notice|info|debug|registry|script|inetd|standalone|user|group)\bz"([^"\\]*(?:\\(.|\n)[^"\\]*)*)"z	[^\s"\\]+)r.r-N)r9r:r;r<r=r>r?r@ÚreÚ	MULTILINEÚ
IGNORECASErlrrrrÚTagrrIr
rZOtherr
rnrCr6r6r6r7r;s2


cº@sNeZdZdZdZdZdddgZdgZdgZe	j
ZdZdZ
dZdZdZdZdÿZdefdedfeedddefee
dddejfeedddefeedddefeedddefeedddefeded	ejfd
efdefgdejd
fded
fed
ƒgdœZdS(rzI
    Lexer for squid configuration files.

    .. versionadded:: 0.9
    Z	SquidConfzhttp://www.squid-cache.org/Z	squidconfú
squid.confZsquidztext/x-squidconfÚ
access_logÚaclÚ
always_directÚ
announce_hostÚannounce_periodÚ
announce_portÚannounce_toÚanonymize_headersÚ
append_domainÚas_whois_serverÚauth_param_basicÚauthenticate_childrenÚauthenticate_programÚauthenticate_ttlÚbroken_postsÚ
buffered_logsÚcache_access_logÚcache_announceÚ	cache_dirÚcache_dns_programÚcache_effective_groupÚcache_effective_userÚ
cache_hostÚcache_host_aclÚcache_host_domainÚ	cache_logÚ	cache_memÚcache_mem_highÚ
cache_mem_lowÚ	cache_mgrÚcachemgr_passwdÚ
cache_peerÚcache_peer_accessÚcache_replacement_policyÚcache_stoplistÚcache_stoplist_patternÚcache_store_logÚ
cache_swapÚcache_swap_highÚcache_swap_logÚcache_swap_lowÚ	client_dbÚclient_lifetimeÚclient_netmaskÚconnect_timeoutÚcoredump_dirÚdead_peer_timeoutÚ
debug_optionsÚdelay_accessÚdelay_classÚdelay_initial_bucket_levelÚdelay_parametersÚdelay_poolsÚ	deny_infoÚdns_childrenÚdns_defnamesÚdns_nameserversÚ
dns_testnamesÚemulate_httpd_logÚ
err_html_textÚfake_user_agentÚfirewall_ipÚ
forwarded_forÚforward_snmpd_portÚfqdncache_sizeÚftpget_optionsÚftpget_programÚftp_list_widthÚftp_passiveÚftp_userÚhalf_closed_clientsÚ
header_accessÚheader_replaceÚhierarchy_stoplistÚhigh_response_time_warningÚhigh_page_fault_warningÚ
hosts_fileÚ	htcp_portÚhttp_accessÚhttp_anonymizerÚhttpd_accelÚhttpd_accel_hostÚhttpd_accel_portÚhttpd_accel_uses_host_headerÚhttpd_accel_with_proxyÚ	http_portÚhttp_reply_accessÚ
icp_accessÚ
icp_hit_staleÚicp_portÚicp_query_timeoutÚident_lookupÚident_lookup_accessÚ
ident_timeoutÚincoming_http_averageÚincoming_icp_averageÚinside_firewallÚipcache_highÚipcache_lowÚipcache_sizeÚlocal_domainÚlocal_ipÚlogfile_rotateÚlog_fqdnÚlog_icp_queriesÚ
log_mime_hdrsÚmaximum_object_sizeÚmaximum_single_addr_triesÚmcast_groupsÚmcast_icp_query_timeoutÚmcast_miss_addrÚmcast_miss_encode_keyÚmcast_miss_portÚmemory_poolsÚmemory_pools_limitÚmemory_replacement_policyÚ
mime_tableÚmin_http_poll_cntÚmin_icp_poll_cntÚminimum_direct_hopsÚminimum_object_sizeÚminimum_retry_timeoutÚmiss_accessÚnegative_dns_ttlÚnegative_ttlÚneighbor_timeoutÚneighbor_type_domainÚ
netdb_highÚ	netdb_lowÚnetdb_ping_periodÚnetdb_ping_rateÚnever_directÚno_cacheÚpassthrough_proxyÚ
pconn_timeoutÚpid_filenameÚpinger_programÚpositive_dns_ttlÚ
prefer_directÚ
proxy_authÚproxy_auth_realmÚ
query_icmpÚquick_abortÚquick_abort_maxÚquick_abort_minÚquick_abort_pctÚrange_offset_limitÚread_timeoutÚredirect_childrenÚredirect_programÚredirect_rewrites_host_headerÚ
reference_ageÚrefresh_patternÚreload_into_imsÚrequest_body_max_sizeÚrequest_sizeÚrequest_timeoutÚshutdown_lifetimeÚsingle_parent_bypassÚsiteselect_timeoutÚsnmp_accessÚsnmp_incoming_addressÚ	snmp_portÚsource_pingÚ	ssl_proxyÚstore_avg_object_sizeÚstore_objects_per_bucketÚstrip_query_termsÚswap_level1_dirsÚswap_level2_dirsÚtcp_incoming_addressÚtcp_outgoing_addressÚtcp_recv_bufsizeÚtest_reachabilityÚudp_hit_objÚudp_hit_obj_sizeÚudp_incoming_addressÚudp_outgoing_addressÚunique_hostnameÚunlinkd_programÚuri_whitespaceÚ
useragent_logÚvisible_hostnameÚ
wais_relayÚwais_relay_hostÚwais_relay_portú
proxy-onlyÚweightÚttlúno-queryrúround-robinúmulticast-responderÚonÚoffÚallÚdenyÚallowÚviaÚparentú	no-digestÚheapÚlruÚrealmÚchildrenÚq1Úq2ÚcredentialsttlÚnoneÚdisableÚoffline_toggleÚdiskdÚshutdownÚinfoÚ	parameterÚserver_listÚclient_listÚobjectsÚ
vm_objectsÚutilizationÚipcacheÚ	fqdncacheÚdnsÚ
redirectorÚioÚ
reply_headersÚfiledescriptorsÚnetdbÚstatusÚenableÚclearÚ	url_regexÚ
urlpath_regexÚ
referer_regexÚportÚprotoÚ
req_mime_typeÚ
rep_mime_typeÚmethodÚbrowserÚuserÚsrcÚdstÚtimeÚ	dstdomainÚidentÚsnmp_communitya™(?:(?:(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|0x0*[0-9a-f]{1,2}|0+[1-3]?[0-7]{0,2})(?:\.(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|0x0*[0-9a-f]{1,2}|0+[1-3]?[0-7]{0,2})){3})|(?!.*::.*::)(?:(?!:)|:(?=:))(?:[0-9a-f]{0,4}(?:(?<=::)|(?<!::):)){6}(?:[0-9a-f]{0,4}(?:(?<=::)|(?<!::):)[0-9a-f]{0,4}(?:(?<=::)|(?<!:)|(?<=:)(?<!::):)|(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))z\s+ú#rZz\b)Úprefixrfzstats/zlog/ú=z(?:/(?:z|\b\d+\b))?z(?:\b\d+\b(?:-\b\d+|%)?)z\S+z	\s*TAG:.*z#popz.+)r.rZN)ºr‚rƒr„r…r†r‡rˆr‰rŠr‹rŒrrŽrrr‘r’r“r”r•r–r—r˜r™ršr›rœrržrŸr r¡r¢r£r¤r¥r¦r§r¨r©rªr«r¬r­r®r¯r°r±r²r³r´rµr¶r·r¸r¹rºr»r¼r½r¾r¿rÀrÁrÂrÃrÄrÅrÆrÇrÈrÉrÊrËrÌrÍrÎrÏrÐrÑrÒrÓrÔrÕrÖr×rØrÙrÚrÛrÜrÝrÞrßràrárârãrärårærçrèrérêrërìrírîrïrðrñròrórôrõrör÷rørùrúrûrürýrþrÿrrrrrrrrrr	r
rrr
rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;)r<r=r>r?rr@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrT)rUrVrWrXrYr)rZr[r\r]r^r_r`rarbrcrd)rerfrRrg)rhrirjrkrlrmrnrorprqrrrsrtrurvrw) r9r:r;r<r=rHr>r?r@r}rrlÚkeywordsÚoptsÚactionsZ
actions_statsZactions_logZaclsZip_rerrrr
rÚConstantrrrzr
r|rrCr6r6r6r7rfs´

c@sæeZdZdZdZdZdgZdgZdgZde	e
eeƒfde
d	fe
d
ƒgdedfde
jd	fe
d
ƒgd
edfdedfe
d
ƒgdejfdejfdejfde	eeejƒfdefdejfde	eeejƒfdefdefdefdefdefgdœZdS)rzJ
    Lexer for Nginx configuration files.

    .. versionadded:: 0.11
    zNginx configuration filezhttp://nginx.net/Znginxz
nginx.confztext/x-nginx-confz(include)(\s+)([^\s;]+)z[^\s;#]+ÚstmtÚbasez\}z#pop:2z\{Úblockú;z#popz#.*\nzon|offz\$[^\s;#()]+z([a-z0-9.-]+)(:)([0-9]+)z[a-z-]+/[a-z-+]+z
[0-9]+[km]?\bz(~)(\s*)([^\s{]+)z[:=~]z[^\s;#{}$]+z	/[^\s;#]*z\s+z[$;])r.rrr€N)r9r:r;r<r=rHr>r?r@rr
rrrrÚ	NamespacerrAr~rJrrmrÚRegexr
rCr6r6r6r7rés8
c@sveZdZdZdZdZddgZdgZdgZdd	e	j
fd
efdefde
fd
e
fdefdejfdefdejfdefg
iZdS)r zM
    Lexer for Lighttpd configuration files.

    .. versionadded:: 0.11
    zLighttpd configuration filezhttp://lighttpd.net/ZlighttpdZlightyz
lighttpd.confztext/x-lighttpd-confr.z#.*\nz/\S*z[a-zA-Z._-]+z\d+\.\d+\.\d+\.\d+(?:/\d+)?z[0-9]+z=>|=~|\+=|==|=|\+z\$[A-Z]+z[(){}\[\],]z"([^"\\]*(?:\\.[^"\\]*)*)"z\s+N)r9r:r;r<r=rHr>r?r@rrArr
rrrIrrrnrrCr6r6r6r7r s"c@seZdZdZdZdZddgZddgZdgZd	Z	d
Z
dZej
ejBZdd
efdeeeeeeeeƒfdefeeeeeƒƒfdeefeeeeeƒƒfdefeeeeeƒeeƒƒfdeefeeeeeƒƒfde	eeeeƒfde
feeeƒfdeeƒfg	iZdS)r!zJ
    Lexer for Docker configuration files.

    .. versionadded:: 2.0
    ZDockerzhttp://docker.ioZdockerZ
dockerfileZ
Dockerfilez*.dockerztext/x-dockerfile-configz-(?:MAINTAINER|EXPOSE|WORKDIR|USER|STOPSIGNAL)z-(?:RUN|CMD|ENTRYPOINT|ENV|ARG|LABEL|ADD|COPY)z
(?:\s*\\?\s*)r.z#.*z1(FROM)([ \t]*)(\S*)([ \t]*)(?:(AS)([ \t]*)(\S*))?z(ONBUILD)(\s+)(%s)z$(HEALTHCHECK)(\s+)((%s--\w+=\w+%s)*)z/(VOLUME|ENTRYPOINT|CMD|SHELL)(\s+)(%s)(\[.*?\])z$(LABEL|ENV|ARG)(\s+)((%s\w+=\w+%s)*)z(%s|VOLUME)\b(\s+)(.*)z	(%s)(\s+)z(.*\\\n)*.+N)r9r:r;r<r=rHr>r?r@Z	_keywordsZ_bash_keywordsZ_lbr}rr~rlrrr
rrrrrrCr6r6r6r7r!5s0

c@seZdZdZdZdZddgZdgZddgZd¬Z	dj
dje	ƒƒZd­Z
d®Zd¯Zd°Zd±Zd²Zd³Zd´ZdµZd¶ZeeeeeeeeeZdj
djeƒƒZdˆd‰„ZedŠƒed‹ƒdŒeejƒfed·dddej fee
ddde!j"fed‘ƒed’ƒd“e#fgd”e$j%d•fd–e$j&fed‹ƒd—ee'ej(e'e)e'e*ƒfd˜ee'ej+e'e)e'ƒfd™ee'e,jje'e)e'ƒfedšeej-e*ƒfd›ee*ej(e*ƒfedœee!j.e'ej/e'ej0e'e*ƒfdefg
džeej0ƒfdŸeej0ƒfgd e*fgd¡e$j%fd¢e$j%d£fd¤e$j%d¥fd¦e$j%fgd§e'fd¨e'fd©ee1e'ƒfgdªœZ2d«S)¸r"zH
    Lexer for terraformi ``.tf`` files.

    .. versionadded:: 2.1
    Z	Terraformzhttps://www.terraform.io/Z	terraformÚtfz*.tfzapplication/x-tfzapplication/x-terraformÚbackendÚdataÚmoduleÚoutputÚproviderÚprovisionerÚresourceÚvariablez({})ú|rqÚnumberÚboolÚlistÚtupleÚmapÚsetÚobjectÚnullÚabsÚceilÚfloorÚlogÚmaxÚmixÚparseintÚpowÚsignumÚchompÚformatÚ
formatlistÚindentÚjoinÚlowerÚregexÚregexallÚreplaceÚsplitÚstrrevÚsubstrÚtitleÚtrimÚ
trimprefixÚ
trimsuffixÚ	trimspaceÚupperÚalltrueÚanytrueÚ	chunklistÚcoalesceÚcoalescelistÚcompactÚconcatÚcontainsÚdistinctÚelementÚflattenÚindexÚkeysÚlengthÚlookupÚ	matchkeysÚmergerdÚreverseÚsetintersectionÚ
setproductÚsetsubtractÚsetunionÚsliceÚsortÚsumÚ	transposeÚvaluesÚzipmapÚbase64decodeÚbase64encodeÚ
base64gzipÚ	csvdecodeÚ
jsondecodeÚ
jsonencodeÚtextdecodebase64Útextencodebase64Ú	urlencodeÚ
yamldecodeÚ
yamlencodeÚabspathÚdirnameÚ
pathexpandÚbasenameÚfileÚ
fileexistsÚfilesetÚ
filebase64ÚtemplatefileÚ
formatdateÚtimeaddÚ	timestampÚbase64sha256Úbase64sha512ÚbcryptÚfilebase64sha256Úfilebase64sha512Úfilemd5Úfilesha1Ú
filesha256Ú
filesha512Úmd5Ú
rsadecryptÚsha1Úsha256Úsha512ÚuuidÚuuidv5ÚcidrhostÚcidrnetmaskÚ
cidrsubnetÚcidrsubnetsÚcanÚdefaultsÚtoboolÚtolistÚtomapÚtonumberÚtosetÚtostringÚtryc	csH|jdƒ}|t|jdƒfV|jdƒtj|jdƒfV|jdƒ|_|jdƒ|_|jtj|jdƒfV|jƒ|_|jdƒ}d}g}x¶tj	|j
|jƒD]~}|r¨|jƒjƒ}n|jƒjƒ}||krx"|D]}|jƒtj|jƒfVqÄW|jƒtj|jƒfV|jƒ|_Pq’|j
|ƒq’Wx"|D]}|jƒt|jƒfVqWt|j
ƒ|_dS)Nr2rMr0T)ÚstartrÚgrouprZ	DelimiterÚposÚendZHeredocr	Úfinditerr5ÚstripÚrstripÚappendrÚlen)	ÚselfÚmatchÚctxrZhdnameZtolerantÚlinesÚcheckZamatchr6r6r7Úheredoc_callback•s0






zTerraformLexer.heredoc_callbackÚbasicÚ
whitespacez(".*")ÚtrueÚfalsez\b)ryrfÚ
identifierÚpunctuationz[0-9]+z\s*/\*rZz
\s*(#|//).*\nz'(\s*)([0-9a-zA-Z-_]+)(\s*)(=?)(\s*)(\{)z"(\s*)([0-9a-zA-Z-_]+)(\s*)(=)(\s*)z(\s*)("\S+")(\s*)([=:])(\s*)z(\()z(\[)([a-z_,\s]+)(\])z8(\s+)("[0-9a-zA-Z-_]+")?(\s*)("[0-9a-zA-Z-_]+")(\s+)(\{)z(<<-?)\s*([a-zA-Z_]\w*)(.*?\n)z\b(var\.[0-9a-zA-Z-_\.\[\]]+)\bz.\b([0-9a-zA-Z-_\[\]]+\.[0-9a-zA-Z-_\.\[\]]+)\bz[\[\]()\{\},.?:!=]z[^*/]z/\*z#pushz\*/z#popz[*/]z\nz\s+z(\\)(\n))r.rrrrZrN)r†r‡rˆr‰rŠr‹rŒr)	rqrrr‘r’r“r”r•r–)	r—r˜r™ršr›rœrržrŸ)r r¡r¢r£r¤r¥r¦r§r¨r©rªr«r¬r­r®r¯r°r±)r²r³r´rµr¶r·r¸r¹rºr»r¼r½r¾r¿r‘rÀr“rÁrÂrdrÃrÄrÅrÆrÇrÈrÉrÊrËrÌrÍ)rÎrÏrÐrÑrÒrÓrÔrÕrÖr×rØ)	rÙrÚrÛrÜrÝrÞrßràrá)rârãrä)rårærçrèrérêrërìrírîrïrðrñròrórô)rõrör÷rø)	rùrúrûrürýrþrÿrr)rr)3r9r:r;r<r=rHr>r?r@Úclassesr¡r¤Z
classes_reÚtypesZnumeric_functionsZstring_functionsZcollection_functionsZencoding_functionsZfilesystem_functionsZdate_time_functionsZhash_crypto_functionsZip_network_functionsZtype_conversion_functionsÚbuiltinsZbuiltins_rerrrrrnrrr~r
rvrrÚ	MultilinerArrIrrrBrrurwrxrJr
rCr6r6r6r7r"Ys'



c	@s¸eZdZdZdZdgZddgZgZdefde	j
dfdefgd	ed
fdedfd
efde	j
fgdeeeƒfdedfdeeeƒfdedfdefde	jfgdefded
fdefdefgdœZdS)r#zm
    Lexer for termcap database source.

    This is very simple and minimal.

    .. versionadded:: 2.1
    ZTermcapZtermcapztermcap.srcz^#.*z
^[^\s#:|]+Únamesz\s+z\nz#popú:Údefsz\|z[^:|]+z(\\)(\n[ \t]*)z\n[ \t]*z#pop:2z(#)([0-9]+)rzr‡z	[^\s:=#]+z\\072z[^:\\]+rs)r.rrr‡N)r9r:r;r<r=r>r?r@rrr€rrrBrr
rrrxrrCr6r6r6r7r#s,	


c
@sÄeZdZdZdZdgZddgZgZdefde	j
dfdefgd	ed
fdee
eƒdfd
e
fde	jfgdefd	edfdeeeƒfdedfdee
eƒfde	jfgdefdee
eƒd
fdefdefgdœZdS)r$zn
    Lexer for terminfo database source.

    This is very simple and minimal.

    .. versionadded:: 2.1
    ZTerminfoZterminfozterminfo.srcz^#.*$z
^[^\s#,|]+rz\s+z\nz#popz(,)([ \t]*)rz\|z[^,|]+z\n[ \t]+z#pop:2z(#)([0-9]+)rzr‡z	[^\s,=#]+z\\[,\\]z[^\\,]+rs)r.rrr‡N)r9r:r;r<r=r>r?r@rrr€rrrrBrrrxrrCr6r6r6r7r$2s,	


c
@sÀeZdZdZdZdZdgZdgZgZde	j
fdeej
eƒfdeejeƒd	fed
ƒdefdefd
efgdefdejdfgdejdfdej
fged
ƒde	j
dfdedfdefdefd
efgdœZdS)r%z€
    Lexer for pkg-config
    (see also `manual page <http://linux.die.net/man/1/pkg-config>`_).

    .. versionadded:: 2.1
    Z	PkgConfigz4http://www.freedesktop.org/wiki/Software/pkg-config/Z	pkgconfigz*.pcz#.*$z	^(\w+)(=)z^([\w.]+)(:)ÚspvalueÚinterpz\s+z
[^${}#=:\n.]+rsz\$\$z\$\{Úcurlyz\}z#popz\w+z\nz[^${}#\n\s]+)r.rr rN)r9r:r;r<r=rHr>r?r@rrArrrBrr€rrrr
rr{rCr6r6r6r7r%as0


c
@s‚eZdZdZdZdZdgZdgZgZdde	j
fdeee
eƒfd	eejeeƒfd
eeejeƒfedddejfdefdefgiZdS)r&a[
    Lexer for pacman.conf.

    Actually, IniLexer works almost fine for this format,
    but it yield error token. It is because pacman.conf has
    a form without assignment like:

        UseSyslog
        Color
        TotalDownload
        CheckSpace
        VerbosePkgLists

    These are flags to switch on.

    .. versionadded:: 2.1
    Z
PacmanConfz3https://www.archlinux.org/pacman/pacman.conf.5.htmlZ
pacmanconfzpacman.confr.z#.*$z^(\s*)(\[.*?\])(\s*)$z
(\w+)(\s*)(=)z^(\s*)(\w+)(\s*)$ú$repoú$archú%oú%uz\b)rfz\s+rsN)r!r"r#r$)r9r:r;r<r=rHr>r?r@rrArrr
rrBrrrJr
rCr6r6r6r7r&›s,c@seZdZdZdZdZdgZdgZdee	j
eej
ƒfdee	j
eejƒfdeejeƒfd	eeejee	jeƒfd
ejdfdefd
efdejdfdejdfdeej
eejƒfdejfdefgdejfdejfdejdfgdejfdejfdejdfgdejfd
ejdfdejdfdejfgdœZdS)r'z6
    Lexer for Augeas.

    .. versionadded:: 2.4
    ZAugeaszhttp://augeas.netZaugeasz*.augz(module)(\s*)([^\s=]+)z(let)(\s*)([^\s=]+)zV(del|store|value|counter|seq|key|label|autoload|incl|excl|transform|test|get|put)(\s+)z8(\()([^:]+)(\:)(unit|string|regexp|lens|tree|filter)(\))z\(\*rZz[*+\-.;=?|]z
[()\[\]{}]rprqz\/r¦z([A-Z]\w*)(\.)(\w+)rsz\s+z\\.z[^"]z#popz[^/]z[^*)]z#pushz\*\)z[)*])r.rqr¦rZN)r9r:r;r<r=rHr>r?rr
rƒrrryrJrIrrvrrrrrnr„r|rCr6r6r6r7r'Õs6




c@sªeZdZdZdZdZdgZdddgZdd	ee	e
ƒfd
e	fde	fdejfd
e
fde
fde
fde
jfdefdejfdejfdejfdejfdejfdefdefdefgiZdS)r(z\
    Lexer for TOML, a simple language
    for config files.

    .. versionadded:: 2.4
    ZTOMLz!https://github.com/toml-lang/tomlZtomlz*.tomlZPipfilezpoetry.lockr.z^(\s*)(\[.*?\])$z[ \t]+z\nz#.*?$z"(\\\\|\\[^\\]|[^"\\])*"z\'\'\'(.*)\'\'\'z
\'[^\']*\'z
(true|false)$z[a-zA-Z_][\w\-]*z>\d{4}-\d{2}-\d{2}(?:T| )\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})z'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z[+-]?(?:(inf(?:inity)?)|nan)z[+-]?\d+z[]{}:(),;[]z\.rzN)r9r:r;r<r=rHr>r?rrr
rrArr~rrrmrzrrrCr6r6r6r7r(s.
c@sªeZdZdZdZdZddgZdgZdZdd	e	e
eƒfd
e	e
ee
e
e
ƒfde	e
ee
e
e
ƒfejdƒe	e
eeee
e
ƒfejd
ƒe	e
eeee
e
ƒfde	e
eee
e
e
ƒfgiZdS)r)z\
    Lexer for NextedText, a human-friendly data
    format.

    .. versionadded:: 2.9
    Z
NestedTextzhttps://nestedtext.orgZ
nestedtextÚntz*.ntz#^(\s*)({0})(.*?)({0}: ?)(.*?)(\s*)$r.z
^(\s*)(#.*?)$z^(\s*)(>)( ?)(.*?)(\s*)$z^(\s*)(-)( ?)(.*?)(\s*)$ú'rpz^(\s*)(.*?)(:)( ?)(.*?)(\s*)$N)r9r:r;r<r=rHr>r?Z_quoted_dict_itemrrrrrr¡rrCr6r6r6r7r)6sc@s¨eZdZdZdZdZdgZddgZej	ej
BejBZdZ
dZdZeeejeƒd	feeejeƒd	fe
eeeeƒfd
efdefdefd
efgdeeƒdfgdœZdd„ZdS)r*zL
    Lexer for Singularity definition files.

    .. versionadded:: 2.6
    ZSingularityzAhttps://www.sylabs.io/guides/3.0/user-guide/definition_files.htmlZsingularityz*.defzS^(\s*)(bootstrap|from|osversion|mirrorurl|include|registry|namespace|includecmd)(:)zT^(%(?:pre|post|setup|environment|help|labels|test|runscript|files|startscript))(\s*)z6^(%app(?:install|help|run|labels|env|test|files))(\s*)Úscriptz	\s*#.*?\nz"\b(([0-9]+\.?[0-9]*)|(\.[0-9]+))\bz[ \t]+z
(?!^\s*%).z(.+?(?=^\s*%))|(.*)z#pop)r.r'cCs>d}tjd|tjƒr|d7}tjtjdd…|ƒr:|d7}|S)zlThis is a quite simple script file, but there are a few keywords
        which seem unique to this language.rz&\b(?:osversion|includecmd|mirrorurl)\bgà?r2Ng\Âõ(\ß?)r}Úsearchrr*Ú_section)r5Úresultr6r6r7r8qszSingularityLexer.analyse_textN)r9r:r;r<r=rHr>r?r}rr~ÚDOTALLrlÚ_headersr)Z_appsectrrZHeadingrr
r
rrrrrCr8r6r6r6r7r*Qs$c@sLeZdZdZdZddgZgZddefdefde	fd	e
fd
efdefgiZ
dS)
r+z°
    Lexer for Unix/Linux config files using colon-separated values, e.g.

    * ``/etc/group``
    * ``/etc/passwd``
    * ``/etc/shadow``
    
    .. versionadded:: 2.12
    zUnix/Linux config filesZ
unixconfigZlinuxconfigr.z^#.*z\nrz[0-9]+z"((?!\n)[a-zA-Z0-9\_\-\s\(\),]){2,}z[^:\n]+N)r9r:r;r<r=r>r?rrrrr
rrCr6r6r6r7r+~s	)2r<r}Zpygments.lexerrrrrrrrr	Zpygments.tokenr
rrr
rrrrrrrrZpygments.lexers.shellrZpygments.lexers.datarÚ__all__rrrrQrrrrrr r!r"r#r$r%r&r'r(r)r*r+r6r6r6r7Ú<module>	sD(8
-+(M>+/$+//::-4-