Skip to content

Commit

Permalink
HCL Syntax support
Browse files Browse the repository at this point in the history
  • Loading branch information
matschaffer-roblox committed Nov 7, 2022
1 parent b4ecd14 commit f768285
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
36 changes: 36 additions & 0 deletions examples/example.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}

required_version = ">= 0.14.9"
}

provider "aws" {
profile = "default"
region = "us-west-2"
}

resource "aws_instance" "app_server" {
ami = "ami-830c94e3"
instance_type = "t2.micro"

tags = {
Name = "ExampleAppServerInstance"
}
}

resource "aws_api_gateway_integration_response" "proxy_other" {
depends_on = ["aws_api_gateway_integration.proxy_other"]
rest_api_id = "${aws_api_gateway_rest_api.this.id}"
resource_id = "${aws_api_gateway_resource.proxy_other.id}"
http_method = "${aws_api_gateway_method.proxy_other.http_method}"
status_code = "${aws_api_gateway_method_response.proxy_other.status_code}"

response_templates = {
"application/json" = ""
}
}
3 changes: 3 additions & 0 deletions themes/LaserWave-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@
{
"name": "attributes",
"scope": [
"variable.other.enummember",
"entity.other.attribute-name",
"entity.other.attribute-name.jsx",
"entity.other.attribute-name.html",
Expand Down Expand Up @@ -378,6 +379,7 @@
{
"name": "variables",
"scope": [
"variable.other",
"variable.scss",
"meta.function-call.c",
"variable.parameter.ts",
Expand Down Expand Up @@ -415,6 +417,7 @@
{
"name": "Types",
"scope": [
"entity.name.type",
"storage.type",
"keyword.var.go",
"keyword.type.go",
Expand Down
2 changes: 2 additions & 0 deletions themes/LaserWave-high-contrast-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@
{
"name": "variables",
"scope": [
"variable.other",
"variable.scss",
"meta.function-call.c",
"variable.parameter.ts",
Expand Down Expand Up @@ -415,6 +416,7 @@
{
"name": "Types",
"scope": [
"entity.name.type",
"storage.type",
"keyword.var.go",
"keyword.type.go",
Expand Down

0 comments on commit f768285

Please sign in to comment.