Skip to content

Commit 7d503c2

Browse files
committed
Tweak pattern quotes
1. consistently use single `\"` style 2. avoid double quoted patterns
1 parent 080d3c3 commit 7d503c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Terraform.sublime-syntax

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,14 @@ contexts:
272272
2: keyword.operator.arithmetic.terraform
273273
3: meta.number.integer.terraform constant.numeric.value.terraform
274274
4: punctuation.definition.string.end.terraform
275-
- match: '"'
275+
- match: \"
276276
comment: Strings
277277
scope: punctuation.definition.string.begin.terraform
278278
push: string_body
279279

280280
string_body:
281281
- meta_scope: meta.string.terraform string.quoted.double.terraform
282-
- match: '"'
282+
- match: \"
283283
scope: punctuation.definition.string.end.terraform
284284
pop: 1
285285
- match: '{{char_escapes}}'
@@ -420,7 +420,7 @@ contexts:
420420
comment: String literal label
421421
scope: punctuation.definition.string.begin.terraform
422422
push: literal_label_body
423-
- match: "{{identifier}}"
423+
- match: '{{identifier}}'
424424
comment: Identifier label
425425
scope: entity.name.label.terraform
426426
- include: numeric_literals
@@ -536,7 +536,7 @@ contexts:
536536

537537
member:
538538
- include: comments
539-
- match: "{{identifier}}"
539+
- match: '{{identifier}}'
540540
comment: Attribute access
541541
scope: variable.other.member.terraform
542542
pop: 1
@@ -660,7 +660,7 @@ contexts:
660660
- include: comma
661661

662662
identifiers:
663-
- match: "{{identifier}}"
663+
- match: '{{identifier}}'
664664
scope: variable.other.readwrite.terraform
665665

666666
# Blocks: Identifier (StringLit|Identifier)* "{" Newline Body "}" Newline;
@@ -693,7 +693,7 @@ contexts:
693693
- match: \"
694694
scope: punctuation.definition.string.begin.terraform
695695
push: block_name_body
696-
- match: "{{identifier}}"
696+
- match: '{{identifier}}'
697697
scope: entity.name.label.terraform
698698
- match: \{
699699
scope: punctuation.section.block.begin.terraform

0 commit comments

Comments
 (0)