Skip to content

Commit 80651a9

Browse files
authored
Merge pull request #21 from hariscodes/master
Add support for all .hcl files
2 parents 0de08c0 + 04af6f6 commit 80651a9

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

examples/test.hcl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is used to test syntax highlighting on all *.hcl files
2+
3+
terraform {
4+
source = "git::git@github.com:terraform-aws-modules/terraform-aws-acm.git?ref=v2.5.0"
5+
}
6+
7+
include {
8+
path = find_in_parent_folders()
9+
}
10+
11+
###########################################################
12+
# View all available inputs for this module:
13+
# https://registry.terraform.io/modules/terraform-aws-modules/acm/aws/2.5.0?tab=inputs
14+
###########################################################
15+
inputs = {
16+
17+
domain_name = "acme-prod.com"
18+
19+
validate_certificate = false # validated manually is separate AWS account
20+
21+
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"Terragrunt"
6262
],
6363
"extensions": [
64-
"terragrunt.hcl"
64+
".hcl"
6565
],
6666
"configuration": "./language-configuration.json"
6767
},
@@ -98,10 +98,10 @@
9898
},
9999
"scripts": {
100100
"build": "npm run compile -s",
101-
"compile-tf": "yq eval --prettyPrint --tojson grammars/tf.yaml > grammars/tf.json",
102-
"compile-tfvars": "yq eval --prettyPrint --tojson grammars/tfvars.yaml > grammars/tfvars.json",
103-
"compile-terragrunt": "yq eval --prettyPrint --tojson grammars/terragrunt.yaml > grammars/terragrunt.json",
104-
"compile-snippets": "yq eval --prettyPrint --tojson snippets/tf.yaml > snippets/tf.json",
101+
"compile-tf": "yq eval --prettyPrint -o=json grammars/tf.yaml > grammars/tf.json",
102+
"compile-tfvars": "yq eval --prettyPrint -o=json grammars/tfvars.yaml > grammars/tfvars.json",
103+
"compile-terragrunt": "yq eval --prettyPrint -o=json grammars/terragrunt.yaml > grammars/terragrunt.json",
104+
"compile-snippets": "yq eval --prettyPrint -o=json snippets/tf.yaml > snippets/tf.json",
105105
"compile": "npm run compile-tf && npm run compile-tfvars && npm run compile-terragrunt && npm run compile-snippets",
106106
"preversion": "git add -A .",
107107
"postversion": "npm run push -s",

0 commit comments

Comments
 (0)