-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a base test case for nested maps This adds a terraform file containing nested maps and a snapshot test capturing the broken highlighting * fix highlighting of nested maps This commit adds `objects` as an include to `objects`. It allows deeply nested objects and results in a new `meta.braces.terraform` scope for each nested level. * Further improve highlighting of nested maps This changes the scope for object keys from `string.unquoted.terraform` to `variable.other.readwrite.terraform`, allowing them to be highlighted in line with other variables. With the update of the `keyword.operator` the `=` inside nested maps is also highlighted in line with variable assignments. This change also applied to inline for expressions, so we had to extend the pattern for matching `=>`. Matching `=>` here is only a quick-fix. When we improve the detection of inline `for` loops, it can be removed.
- Loading branch information
Showing
10 changed files
with
237 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,4 @@ | |
>!thing1 | ||
#^ source.terraform keyword.operator.logical.terraform | ||
# ^^^^^^^ source.terraform | ||
> | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ipam_configuration = { | ||
us-east-1 = { | ||
cidr = ["10.0.0.0/16"] | ||
locale = "us-east-1" | ||
|
||
sub_pools = { | ||
dev = { | ||
cidr = ["10.0.0.0/20"] | ||
allocation_default_netmask_length = 28 | ||
|
||
sub_pools = { | ||
app_team_b = { | ||
cidr = ["10.0.0.0/24"] | ||
description = "app team b's space in us-east-1" | ||
} | ||
app_team_a = { | ||
cidr = ["10.0.1.0/24"] | ||
} | ||
} | ||
} | ||
|
||
stage = { | ||
cidr = ["10.0.16.0/20"] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.