@@ -166,8 +166,10 @@ variables:
166166 )
167167
168168contexts :
169- main :
169+ prototype :
170170 - include : comments
171+
172+ main :
171173 - include : attribute-definition
172174 - include : imports
173175 - include : blocks
@@ -306,6 +308,7 @@ contexts:
306308 push : string-body
307309
308310 string-body :
311+ - meta_include_prototype : false
309312 - meta_scope : meta.string.terraform string.quoted.double.terraform
310313 - match : \"
311314 scope : punctuation.definition.string.end.terraform
@@ -524,7 +527,6 @@ contexts:
524527 1 : keyword.operator.splat.terraform
525528 pop : 1
526529 - include : comma
527- - include : comments
528530 - include : tuple-for-expression
529531 - include : expressions
530532
@@ -544,7 +546,6 @@ contexts:
544546 scope : punctuation.section.braces.end.terraform
545547 pop : 1
546548 - include : object-for-expression
547- - include : comments
548549 - match : (?=({{identifier}}|\".*?\")\s*=)
549550 push :
550551 - object-value
@@ -585,7 +586,6 @@ contexts:
585586 #
586587 # https://github.com/hashicorp/hcl2/blob/master/hcl/hclsyntax/spec.md#collection-values
587588 object-value :
588- - include : comments
589589 - match : \,
590590 comment : Pop scope on comma.
591591 scope : punctuation.separator.terraform
@@ -608,7 +608,6 @@ contexts:
608608 push : member
609609
610610 member :
611- - include : comments
612611 - match : ' {{identifier}}'
613612 comment : Attribute access
614613 scope : variable.other.member.terraform
@@ -693,7 +692,6 @@ contexts:
693692 - match : \)
694693 scope : punctuation.section.parens.end.terraform
695694 pop : 1
696- - include : comments
697695 - include : expressions
698696 - include : comma
699697
@@ -748,7 +746,6 @@ contexts:
748746 - match : ' \:'
749747 scope : punctuation.section.block.loop.for.terraform
750748 - include : expressions
751- - include : comments
752749 - include : comma
753750
754751 namespaces :
0 commit comments