There was an error while loading. Please reload this page.
1 parent 5679bce commit 55ef7abCopy full SHA for 55ef7ab
examples/5.tf
@@ -0,0 +1,13 @@
1
+variable testvar {
2
+ type = object({
3
+ nouns = list(string),
4
+ adjectives = list(string),
5
+ })
6
+
7
+ description = "A word pool from mad list"
8
9
+ validation {
10
+ condition = length(var.testvar["nouns"]) >= 11
11
+ error_message = "at least 11 nounds are needed"
12
+ }
13
+}
grammars/tf.yaml
@@ -169,7 +169,7 @@ patterns:
169
0: { name: punctuation.declaration.block.end.tf }
170
patterns:
171
- include: "#comments"
172
- - match: '\b(type|default|description)(?:\s+)?(=)(?:\s+)?'
+ - match: '\b(type|default|description|validation)(?:\s+)?(=)?(?:\s+)?'
173
captures:
174
1: { name: meta.keyword.$1.tf }
175
2: { name: keyword.operator.assignment.tf }
0 commit comments