Skip to content

Commit 3302959

Browse files
committed
Replace pop: true
1 parent 6bac309 commit 3302959

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

Terraform.sublime-syntax

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ contexts:
154154
paren_body:
155155
- match: \)
156156
scope: punctuation.section.parens.end.terraform
157-
pop: true
157+
pop: 1
158158
- include: expressions
159159

160160
# Literal Values: Numbers, Language Constants, and Strings
@@ -195,7 +195,7 @@ contexts:
195195
- meta_scope: comment.line.terraform
196196
- match: $\n?
197197
scope: punctuation.definition.comment.terraform
198-
pop: true
198+
pop: 1
199199

200200
# Block comments: start and end delimiters for multi-line comments.
201201
#
@@ -211,7 +211,7 @@ contexts:
211211
- meta_scope: comment.block.terraform
212212
- match: \*/
213213
scope: punctuation.definition.comment.terraform
214-
pop: true
214+
pop: 1
215215

216216
# Language Constants: booleans and `null`.
217217
#
@@ -284,7 +284,7 @@ contexts:
284284
- meta_scope: meta.string.terraform string.quoted.double.terraform
285285
- match: '"'
286286
scope: punctuation.definition.string.end.terraform
287-
pop: true
287+
pop: 1
288288
- match: '{{char_escapes}}'
289289
comment: Character Escapes
290290
scope: constant.character.escape.terraform
@@ -308,7 +308,7 @@ contexts:
308308
- match: \*
309309
scope: constant.other.wildcard.asterisk.terraform
310310
- match: (?![\w-])
311-
pop: true
311+
pop: 1
312312

313313
acl_interpolation_body:
314314
- meta_scope: meta.interpolation.terraform
@@ -333,7 +333,7 @@ contexts:
333333
captures:
334334
1: keyword.operator.template.trim.right.terraform
335335
2: punctuation.section.interpolation.end.terraform
336-
pop: true
336+
pop: 1
337337
- match: \b(if|else|endif|for|in|endfor)\b
338338
comment: if/else/endif and for/in/endfor directives
339339
scope: keyword.control.terraform
@@ -355,7 +355,7 @@ contexts:
355355
- match: ^\s*\2\s*$
356356
comment: The heredoc token identifier (second capture above).
357357
scope: keyword.control.heredoc.terraform
358-
pop: true
358+
pop: 1
359359
- include: string_interpolation
360360

361361
# Operators:
@@ -421,13 +421,13 @@ contexts:
421421
- include: attribute_access
422422
- match: $\n?
423423
comment: Pop at newline
424-
pop: true
424+
pop: 1
425425

426426
literal_label_body:
427427
- meta_scope: meta.string.terraform string.quoted.double.terraform
428428
- match: \"
429429
scope: punctuation.definition.string.end.terraform
430-
pop: true
430+
pop: 1
431431

432432
# Brackets: matches tuples and subscript notation
433433
#
@@ -443,7 +443,7 @@ contexts:
443443
scope: punctuation.section.brackets.end.terraform
444444
captures:
445445
1: keyword.operator.splat.terraform
446-
pop: true
446+
pop: 1
447447
- include: comma
448448
- include: comments
449449
- include: tuple_for_expression
@@ -463,7 +463,7 @@ contexts:
463463
- meta_scope: meta.braces.terraform
464464
- match: \}
465465
scope: punctuation.section.braces.end.terraform
466-
pop: true
466+
pop: 1
467467
- include: object_for_expression
468468
- include: comments
469469
- match: (?=({{identifier}}|\".*?\")\s*=)
@@ -487,19 +487,19 @@ contexts:
487487
object_literal_key:
488488
- match: '{{identifier}}'
489489
scope: meta.mapping.key.terraform string.unquoted.terraform
490-
pop: true
490+
pop: 1
491491
- match: (\").*?(\")
492492
scope: meta.mapping.key.terraform string.quoted.double.terraform
493493
captures:
494494
1: punctuation.definition.string.begin.terraform
495495
2: punctuation.definition.string.end.terraform
496-
pop: true
496+
pop: 1
497497
- include: else_pop
498498

499499
assignment_operator:
500500
- match: =
501501
scope: keyword.operator.assignment.terraform
502-
pop: true
502+
pop: 1
503503
- include: else_pop
504504

505505
# Object key values: pop at comma, newline, and closing-bracket
@@ -511,14 +511,14 @@ contexts:
511511
- match: \,
512512
comment: Pop scope on comma.
513513
scope: punctuation.separator.terraform
514-
pop: true
514+
pop: 1
515515
- match: $\n?
516516
comment: Pop scope on EOL.
517-
pop: true
517+
pop: 1
518518
- match: (?=\})
519519
comment: Lookahead (don't consume) and pop scope on a bracket.
520520
scope: punctuation.section.braces.end.terraform
521-
pop: true
521+
pop: 1
522522

523523
# Attribute Access: "." Identifier
524524
#
@@ -533,15 +533,15 @@ contexts:
533533
- match: "{{identifier}}"
534534
comment: Attribute access
535535
scope: variable.other.member.terraform
536-
pop: true
536+
pop: 1
537537
- match: \d+
538538
comment: Subscript
539539
scope: constant.numeric.integer.terraform
540-
pop: true
540+
pop: 1
541541
- match: \*
542542
comment: Attribute-only splat
543543
scope: keyword.operator.splat.terraform
544-
pop: true
544+
pop: 1
545545
- include: else_pop
546546

547547
# Attribute Definition: Identifier "=" Expression Newline
@@ -565,19 +565,19 @@ contexts:
565565
# https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
566566
- match: for_each\b
567567
scope: variable.declaration.terraform keyword.control.loop.for.terraform
568-
pop: true
568+
pop: 1
569569
# https://developer.hashicorp.com/terraform/language/meta-arguments/count
570570
- match: count\b
571571
scope: variable.declaration.terraform keyword.control.conditional.terraform
572-
pop: true
572+
pop: 1
573573
- match: '{{identifier}}'
574574
scope: variable.declaration.terraform variable.other.readwrite.terraform
575-
pop: true
575+
pop: 1
576576

577577
attribute_key_end:
578578
- match: \)
579579
scope: punctuation.section.parens.end.terraform
580-
pop: true
580+
pop: 1
581581

582582
# Functions: Terraform builtins and unknown
583583
#
@@ -596,7 +596,7 @@ contexts:
596596
- meta_scope: meta.function-call.terraform
597597
- match: \)
598598
scope: punctuation.section.parens.end.terraform
599-
pop: true
599+
pop: 1
600600
- include: comments
601601
- include: expressions
602602
- include: comma
@@ -616,7 +616,7 @@ contexts:
616616
tuple_for_expression_body:
617617
- match: \]
618618
scope: punctuation.section.brackets.end.terraform
619-
pop: true
619+
pop: 1
620620
- include: for_expression_body
621621

622622
# Object for-Expression:
@@ -634,7 +634,7 @@ contexts:
634634
object_for_expression_body:
635635
- match: \}
636636
scope: punctuation.section.braces.end.terraform
637-
pop: true
637+
pop: 1
638638
- match: \=\>
639639
scope: punctuation.separator.key-value.terraform
640640
- include: for_expression_body
@@ -699,15 +699,15 @@ contexts:
699699
- meta_scope: meta.string.terraform string.quoted.double.terraform
700700
- match: \"
701701
scope: punctuation.definition.string.end.terraform
702-
pop: true
702+
pop: 1
703703

704704
block_body:
705705
- meta_scope: meta.block.terraform
706706
- match: \}
707707
scope: punctuation.section.block.end.terraform
708-
pop: true
708+
pop: 1
709709
- include: main
710710

711711
else_pop:
712712
- match: (?=\S)
713-
pop: true
713+
pop: 1

0 commit comments

Comments
 (0)