@@ -154,7 +154,7 @@ contexts:
154
154
paren_body :
155
155
- match : \)
156
156
scope : punctuation.section.parens.end.terraform
157
- pop : true
157
+ pop : 1
158
158
- include : expressions
159
159
160
160
# Literal Values: Numbers, Language Constants, and Strings
@@ -195,7 +195,7 @@ contexts:
195
195
- meta_scope : comment.line.terraform
196
196
- match : $\n?
197
197
scope : punctuation.definition.comment.terraform
198
- pop : true
198
+ pop : 1
199
199
200
200
# Block comments: start and end delimiters for multi-line comments.
201
201
#
@@ -211,7 +211,7 @@ contexts:
211
211
- meta_scope : comment.block.terraform
212
212
- match : \*/
213
213
scope : punctuation.definition.comment.terraform
214
- pop : true
214
+ pop : 1
215
215
216
216
# Language Constants: booleans and `null`.
217
217
#
@@ -284,7 +284,7 @@ contexts:
284
284
- meta_scope : meta.string.terraform string.quoted.double.terraform
285
285
- match : ' "'
286
286
scope : punctuation.definition.string.end.terraform
287
- pop : true
287
+ pop : 1
288
288
- match : ' {{char_escapes}}'
289
289
comment : Character Escapes
290
290
scope : constant.character.escape.terraform
@@ -308,7 +308,7 @@ contexts:
308
308
- match : \*
309
309
scope : constant.other.wildcard.asterisk.terraform
310
310
- match : (?![\w-])
311
- pop : true
311
+ pop : 1
312
312
313
313
acl_interpolation_body :
314
314
- meta_scope : meta.interpolation.terraform
@@ -333,7 +333,7 @@ contexts:
333
333
captures :
334
334
1 : keyword.operator.template.trim.right.terraform
335
335
2 : punctuation.section.interpolation.end.terraform
336
- pop : true
336
+ pop : 1
337
337
- match : \b(if|else|endif|for|in|endfor)\b
338
338
comment : if/else/endif and for/in/endfor directives
339
339
scope : keyword.control.terraform
@@ -355,7 +355,7 @@ contexts:
355
355
- match : ^\s*\2\s*$
356
356
comment : The heredoc token identifier (second capture above).
357
357
scope : keyword.control.heredoc.terraform
358
- pop : true
358
+ pop : 1
359
359
- include : string_interpolation
360
360
361
361
# Operators:
@@ -421,13 +421,13 @@ contexts:
421
421
- include : attribute_access
422
422
- match : $\n?
423
423
comment : Pop at newline
424
- pop : true
424
+ pop : 1
425
425
426
426
literal_label_body :
427
427
- meta_scope : meta.string.terraform string.quoted.double.terraform
428
428
- match : \"
429
429
scope : punctuation.definition.string.end.terraform
430
- pop : true
430
+ pop : 1
431
431
432
432
# Brackets: matches tuples and subscript notation
433
433
#
@@ -443,7 +443,7 @@ contexts:
443
443
scope : punctuation.section.brackets.end.terraform
444
444
captures :
445
445
1 : keyword.operator.splat.terraform
446
- pop : true
446
+ pop : 1
447
447
- include : comma
448
448
- include : comments
449
449
- include : tuple_for_expression
@@ -463,7 +463,7 @@ contexts:
463
463
- meta_scope : meta.braces.terraform
464
464
- match : \}
465
465
scope : punctuation.section.braces.end.terraform
466
- pop : true
466
+ pop : 1
467
467
- include : object_for_expression
468
468
- include : comments
469
469
- match : (?=({{identifier}}|\".*?\")\s*=)
@@ -487,19 +487,19 @@ contexts:
487
487
object_literal_key :
488
488
- match : ' {{identifier}}'
489
489
scope : meta.mapping.key.terraform string.unquoted.terraform
490
- pop : true
490
+ pop : 1
491
491
- match : (\").*?(\")
492
492
scope : meta.mapping.key.terraform string.quoted.double.terraform
493
493
captures :
494
494
1 : punctuation.definition.string.begin.terraform
495
495
2 : punctuation.definition.string.end.terraform
496
- pop : true
496
+ pop : 1
497
497
- include : else_pop
498
498
499
499
assignment_operator :
500
500
- match : =
501
501
scope : keyword.operator.assignment.terraform
502
- pop : true
502
+ pop : 1
503
503
- include : else_pop
504
504
505
505
# Object key values: pop at comma, newline, and closing-bracket
@@ -511,14 +511,14 @@ contexts:
511
511
- match : \,
512
512
comment : Pop scope on comma.
513
513
scope : punctuation.separator.terraform
514
- pop : true
514
+ pop : 1
515
515
- match : $\n?
516
516
comment : Pop scope on EOL.
517
- pop : true
517
+ pop : 1
518
518
- match : (?=\})
519
519
comment : Lookahead (don't consume) and pop scope on a bracket.
520
520
scope : punctuation.section.braces.end.terraform
521
- pop : true
521
+ pop : 1
522
522
523
523
# Attribute Access: "." Identifier
524
524
#
@@ -533,15 +533,15 @@ contexts:
533
533
- match : " {{identifier}}"
534
534
comment : Attribute access
535
535
scope : variable.other.member.terraform
536
- pop : true
536
+ pop : 1
537
537
- match : \d+
538
538
comment : Subscript
539
539
scope : constant.numeric.integer.terraform
540
- pop : true
540
+ pop : 1
541
541
- match : \*
542
542
comment : Attribute-only splat
543
543
scope : keyword.operator.splat.terraform
544
- pop : true
544
+ pop : 1
545
545
- include : else_pop
546
546
547
547
# Attribute Definition: Identifier "=" Expression Newline
@@ -565,19 +565,19 @@ contexts:
565
565
# https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
566
566
- match : for_each\b
567
567
scope : variable.declaration.terraform keyword.control.loop.for.terraform
568
- pop : true
568
+ pop : 1
569
569
# https://developer.hashicorp.com/terraform/language/meta-arguments/count
570
570
- match : count\b
571
571
scope : variable.declaration.terraform keyword.control.conditional.terraform
572
- pop : true
572
+ pop : 1
573
573
- match : ' {{identifier}}'
574
574
scope : variable.declaration.terraform variable.other.readwrite.terraform
575
- pop : true
575
+ pop : 1
576
576
577
577
attribute_key_end :
578
578
- match : \)
579
579
scope : punctuation.section.parens.end.terraform
580
- pop : true
580
+ pop : 1
581
581
582
582
# Functions: Terraform builtins and unknown
583
583
#
@@ -596,7 +596,7 @@ contexts:
596
596
- meta_scope : meta.function-call.terraform
597
597
- match : \)
598
598
scope : punctuation.section.parens.end.terraform
599
- pop : true
599
+ pop : 1
600
600
- include : comments
601
601
- include : expressions
602
602
- include : comma
@@ -616,7 +616,7 @@ contexts:
616
616
tuple_for_expression_body :
617
617
- match : \]
618
618
scope : punctuation.section.brackets.end.terraform
619
- pop : true
619
+ pop : 1
620
620
- include : for_expression_body
621
621
622
622
# Object for-Expression:
@@ -634,7 +634,7 @@ contexts:
634
634
object_for_expression_body :
635
635
- match : \}
636
636
scope : punctuation.section.braces.end.terraform
637
- pop : true
637
+ pop : 1
638
638
- match : \=\>
639
639
scope : punctuation.separator.key-value.terraform
640
640
- include : for_expression_body
@@ -699,15 +699,15 @@ contexts:
699
699
- meta_scope : meta.string.terraform string.quoted.double.terraform
700
700
- match : \"
701
701
scope : punctuation.definition.string.end.terraform
702
- pop : true
702
+ pop : 1
703
703
704
704
block_body :
705
705
- meta_scope : meta.block.terraform
706
706
- match : \}
707
707
scope : punctuation.section.block.end.terraform
708
- pop : true
708
+ pop : 1
709
709
- include : main
710
710
711
711
else_pop :
712
712
- match : (?=\S)
713
- pop : true
713
+ pop : 1
0 commit comments