Skip to content

Commit aa74576

Browse files
authored
Make JSON (Terraform) visible (#74)
* Make JSON (Terraform) visible This commit turns JSON (Terraform) into a visible syntax as it has a file extension assigned. Note: Hidden file causes A File Icon dummy to take precedence, breaking syntax highlighting. * Fix external package interference This commit creates a hard link between Terraform and its JSON (Terraform) syntax to avoid external packages breaking highlighting by dummy syntaxes.
1 parent 64aeebd commit aa74576

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

JSON (Terraform).sublime-syntax

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
name: JSON (Terraform)
55
scope: source.json.terraform
66
version: 2
7-
hidden: true
87

98
extends: Packages/JSON/JSON.sublime-syntax
109

Terraform.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ contexts:
451451
2: keyword.operator.terraform
452452
set: object_value
453453
- include: expressions
454-
- include: scope:source.json.terraform#object-body
454+
- include: Packages/Terraform/JSON (Terraform).sublime-syntax#object-body
455455

456456
object_key:
457457
- match: '{{identifier}}'

0 commit comments

Comments
 (0)