-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhcl.plist
228 lines (213 loc) · 6.96 KB
/
hcl.plist
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- Copyright (c) 2019 Iain Barnett. -->
<dict>
<!-- You must identify the plist as a CLM: -->
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<!-- You must identify your language: -->
<key>BBLMLanguageDisplayName</key>
<string>HCL Terraform</string>
<key>BBLMLanguageCode</key>
<string>HCL</string>
<!-- Don't make the user pick the language out -->
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.tf</string>
</dict>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.hcl</string>
</dict>
</array>
<!-- Not required, but there’s not much point to
a language module if it doesn’t color syntax: -->
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMKeywords</key>
<array>
<dict>
<!-- Specify some keywords. This isn’t required, either,
but it provides something to color: -->
<key>RunKind</key>
<string>com.barebones.bblm.keyword</string>
<key>Keywords</key>
<array>
<string>connection</string>
<string>egress</string>
<string>ingress</string>
<string>listener</string>
<string>provisioner</string>
<string>resource</string>
<string>variable</string>
<string>output</string>
</array>
</dict>
<dict>
<!-- These also get coloured -->
<key>RunKind</key>
<string>com.barebones.bblm.predefined-symbol</string>
<key>Keywords</key>
<array>
<string>acl</string>
<string>allocated_storage</string>
<string>ami</string>
<string>associate_public_ip_address</string>
<string>availability_zone</string>
<string>availability_zones</string>
<string>backup_retention_period</string>
<string>backup_window</string>
<string>bucket</string>
<string>cidr</string>
<string>cidr_block</string>
<string>cidr_blocks</string>
<string>db_subnet_group_name</string>
<string>description</string>
<string>desired_capacity</string>
<string>destination_cidr_block</string>
<string>ebs_optimized</string>
<string>enable_dns_hostnames</string>
<string>enable_dns_support</string>
<string>engine</string>
<string>engine_version</string>
<string>final_snapshot_identifier</string>
<string>force_delete</string>
<string>from_port</string>
<string>gateway_id</string>
<string>health_check</string>
<string>health_check_grace_period</string>
<string>health_check_type</string>
<string>healthy_threshold</string>
<string>host</string>
<string>iam_instance_profile</string>
<string>inline</string>
<string>identifier</string>
<string>image_id</string>
<string>instance</string>
<string>instance_class</string>
<string>instance_id</string>
<string>instance_port</string>
<string>instance_protocol</string>
<string>instance_type</string>
<string>instances</string>
<string>internal</string>
<string>interval</string>
<string>iops</string>
<string>key_name</string>
<string>launch_configuration</string>
<string>lb_port</string>
<string>lb_protocol</string>
<string>load_balancers</string>
<string>maintenance_window</string>
<string>map_public_ip_on_launch</string>
<string>max_size</string>
<string>min_size</string>
<string>multi_az</string>
<string>name</string>
<string>name_prefix</string>
<string>owner_id</string>
<string>password</string>
<string>port</string>
<string>private_ip</string>
<string>private_key</string>
<string>protocol</string>
<string>provider</string>
<string>public_key</string>
<string>publicly_accessible</string>
<string>records</string>
<string>region</string>
<string>route</string>
<string>route_table_id</string>
<string>security_group_id</string>
<string>security_group_name</string>
<string>security_group_names</string>
<string>security_group_owner_id</string>
<string>security_groups</string>
<string>self</string>
<string>skip_final_snapshot</string>
<string>source_dest_check</string>
<string>source_security_group_id</string>
<string>ssl_certificate_id</string>
<string>subnet_id</string>
<string>subnet_ids</string>
<string>subnets</string>
<string>tags</string>
<string>target</string>
<string>timeout</string>
<string>to_port</string>
<string>ttl</string>
<string>type</string>
<string>unhealthy_threshold</string>
<string>user</string>
<string>user_data</string>
<string>username</string>
<string>vpc</string>
<string>vpc_id</string>
<string>vpc_security_group_ids</string>
<string>vpc_zone_identifier</string>
<string>zone_id</string>
</array>
</dict>
</array>
<!--
This is absolutely required for folding
even when Prefix for Functions or Function Pattern
are not defined, so don't remove it!
-->
<key>BBLMScansFunctions</key><true/>
<!--
selecting Un/Comment Selection in the Text menu will
prepend this string to each line that contains the selection
-->
<key>BBLMCommentLineDefault</key> <string>#</string>
<!--
The Language Features dictionary tells BBEdit
how to identify features of your language such as
strings, comments, and symbols.
-->
<key>Language Features</key>
<dict>
<!--
These keys are used regardless of your strategy.
They tell BBEdit how to identify a run of characters as
a single token in your language.
-->
<key>Identifier and Keyword Character Class</key>
<string>A-Za-z0-9_\-</string>
<!--
BBEdit will color any text in a file in your language
that matches this pattern as a comment. There is
only one pattern for all kinds of comments
-->
<key>Comment Pattern</key>
<string><![CDATA[
(?x:
((?:\#|//).*?$) (?# Line comment)
|
(?s:^/\*.+?^\*/) (?# Block comment)
)
]]></string>
<!--
If text in a file matches this PCRE,
BBEdit will color it as a string.
-->
<key>String Pattern</key>
<string><![CDATA[
(?x:
("(\\"|[^"\r]|\\\r)*") | (?# Double-quote)
(?s: (?# Here-document)
<<-?(?P<delim>\w+)
.*?
(?P=delim)
)
)
]]></string>
<key>Open Statement Blocks</key> <string>{</string>
<key>Close Statement Blocks</key> <string>}</string>
</dict> <!-- end of Language Features -->
</dict>
</plist>