Skip to content

Commit c4ac467

Browse files
authored
Fix main key sort order (#73)
This commit changes syntax definitions' main key sort order.
1 parent a2811b6 commit c4ac467

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

HCL.sublime-syntax

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
#
1515
---
1616
name: HCL
17-
17+
scope: source.hcl
1818
version: 2
1919

20+
extends: Terraform.sublime-syntax
21+
2022
# File Extensions:
2123
#
2224
# - ".hcl": non-terraform tools often use this HCL syntax, i.e. Vault
2325
# https://www.vaultproject.io/docs/configuration/
2426
file_extensions:
2527
- hcl
26-
scope: source.hcl
27-
28-
extends: Terraform.sublime-syntax

Terraform Plan.sublime-syntax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# https://github.com/hashicorp/terraform/blob/337bf8e11b75dff87509455cabee60b023dd586e/internal/command/jsonformat/plan.go#L201
55
name: Terraform Plan
66
scope: source.diff.terraform
7+
version: 2
78

89
file_extensions:
910
- tfplan

Terraform-vars.sublime-syntax

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
#
1515
---
1616
name: Terraform (variables)
17-
17+
scope: source.terraform-vars
1818
version: 2
1919

20+
extends: Terraform.sublime-syntax
21+
2022
# File Extensions:
2123
#
2224
# - ".tfvars": variables definitions file
2325
# https://www.terraform.io/docs/configuration/variables.html#variable-definitions-tfvars-files
2426
file_extensions:
2527
- tfvars
26-
scope: source.terraform-vars
27-
28-
extends: Terraform.sublime-syntax

Terraform.sublime-syntax

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
---
1616
name: Terraform
17-
17+
scope: source.terraform
1818
version: 2
1919

2020
# File Extensions:
@@ -25,8 +25,6 @@ file_extensions:
2525
- tf
2626
- nomad
2727

28-
scope: source.terraform
29-
3028
variables:
3129
# Identifiers: ID_Start (ID_Continue | '-')*;
3230
#

0 commit comments

Comments
 (0)