@@ -35,27 +35,19 @@ patterns:
3535 - name : " meta.terraform.required_providers.tf"
3636 begin : ' \b(required_providers)([\w\-\"$])?(?:\s+)?({)'
3737 beginCaptures :
38- # 1: { name: keyword.control .$1.tf }
38+ 1 : { name: keyword.declaration .$1.tf }
3939 2 : { name: invalid.illegal.keyword.$1.tf }
40- 3 : { name: punctuation.definition .block.begin.tf }
40+ 3 : { name: punctuation.declaration .block.begin.tf }
4141 end : " }"
4242 endCaptures :
4343 0 : { name: punctuation.definition.block.end.tf }
4444 patterns :
4545 - include : " #comments"
46- - match : ' \b([\-\w]+)(?:\s+)?(=)(?:\s+)?(")([^$"]+)?(") '
46+ - match : ' \b([\-\w]+)(?:\s+)?(=)(?:\s+)?'
4747 captures :
48- 1 : { name: entity.name. provider.tf }
48+ 1 : { name: support. provider.attribute .tf }
4949 2 : { name: keyword.operator.assignment.tf }
50- 3 :
51- {
52- name : string.quoted.double.tf punctuation.definition.string.begin.tf,
53- }
54- 4 : { name: string.quoted.double.tf }
55- 5 :
56- {
57- name : string.quoted.double.tf punctuation.definition.string.end.tf,
58- }
50+ - include : " #definition-right"
5951 - name : " meta.terraform.backend.tf"
6052 begin : ' \b(backend)(?:\s+)?(")([^$"]+)?(")(?:\s+)?({)'
6153 beginCaptures :
@@ -169,7 +161,7 @@ patterns:
169161 0 : { name: punctuation.declaration.block.end.tf }
170162 patterns :
171163 - include : " #comments"
172- - match : ' \b(type|default|description|validation)(?:\s+)?(=)?(?:\s+)?'
164+ - match : ' \b(type|default|description|validation|sensitive )(?:\s+)?(=)?(?:\s+)?'
173165 captures :
174166 1 : { name: meta.keyword.$1.tf }
175167 2 : { name: keyword.operator.assignment.tf }
@@ -365,11 +357,11 @@ repository:
365357
366358 support-function-collection :
367359 name : support.function.builtin.collection.tf
368- match : ' (?<!\.)\b(chunklist|coalescelist|coalesce|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap)\b(?=\()'
360+ match : ' (?<!\.)\b(alltrue|anytrue| chunklist|coalescelist|coalesce|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|one| range|reverse|setintersection|setproduct|setsubtract |setunion|slice|sort|transpose|values|zipmap)\b(?=\()'
369361
370362 support-function-encoding :
371363 name : support.function.builtin.encoding.tf
372- match : ' (?<!\.)\b(base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode)\b(?=\()'
364+ match : ' (?<!\.)\b(base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|textdecodebase64|textencodebase64| urlencode|yamldecode|yamlencode)\b(?=\()'
373365
374366 support-function-filesystem :
375367 name : support.function.builtin.filesystem.tf
@@ -389,7 +381,7 @@ repository:
389381
390382 support-function-conversion :
391383 name : support.function.builtin.conversion.tf
392- match : ' (?<!\.)\b(tobool|tolist|tomap|tonumber|toset|tostring)\b(?=\()'
384+ match : ' (?<!\.)\b(can|defaults|nonsensitive|sensitive| tobool|tolist|tomap|tonumber|toset|tostring|try )\b(?=\()'
393385
394386 constants-decimal :
395387 match : ' \b\d+(\.)?(\d+)?'
@@ -418,7 +410,7 @@ repository:
418410 name : keyword.operator.ternary.tf
419411
420412 keyword-comparison :
421- match : " ~>|>=|<=|==|!=|[^<]<[^<]|[^>]>[^>]"
413+ match : ' \b( ~>|>=|<=|==|!=|[^<]<[^<]|[^>]>[^>]) '
422414 name : keyword.operator.comparison.tf
423415
424416 keyword-conditional :
0 commit comments