Skip to content

Commit 04af6f6

Browse files
authored
Merge branch '4ops:master' into master
2 parents 9930ee8 + 92f7c76 commit 04af6f6

5 files changed

Lines changed: 45 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 0.2.3
4+
5+
- Added syntax hightlighting and snippet for `moved` blocks ([#18](https://github.com/4ops/vscode-language-terraform/pull/18)). Thanks to [@hariscodes](https://github.com/hariscodes)
6+
- Added syntax highlighting for multiple include blocks in `terragrunt.hcl` ([#15](https://github.com/4ops/vscode-language-terraform/pull/15)). Thanks to [@cruftyoldsysadmin](https://github.com/cruftyoldsysadmin)
7+
38
## 0.2.2
49

510
- Added sensitive variable support

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2020 Anton Kulikov
3+
Copyright © 2022 Anton Kulikov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the “Software”), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
21+
THE SOFTWARE.

grammars/terragrunt.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,35 @@ patterns:
133133
2: { name: keyword.operator.assignment.terragrunt }
134134
- include: "#definition-right"
135135

136+
- name: "meta.multipleinclude.terragrunt"
137+
begin: '\b(include)([\w\-\"$])?(?:\s+)?(")?([^\"\n]+)?(")?(?:\s+)?({)'
138+
beginCaptures:
139+
1: { name: keyword.declaration.$1.terragrunt }
140+
2: { name: invalid.illegal.keyword.$1.terragrunt }
141+
3: { name: string.quoted.double.terragrunt punctuation.definition.string.begin.terragrunt }
142+
4: { name: string.quoted.double.terragrunt entity.name.$1.terragrunt }
143+
5: { name: string.quoted.double.terragrunt punctuation.definition.string.end.terragrunt }
144+
6: { name: punctuation.declaration.block.begin.terragrunt }
145+
end: "}"
146+
endCaptures:
147+
0: { name: punctuation.declaration.block.end.terragrunt }
148+
patterns:
149+
- include: "#comments"
150+
- match: '\b(path)(?:\s+)?(=)(?:\s+)?'
151+
captures:
152+
1: { name: support.output.attribute.terragrunt }
153+
2: { name: keyword.operator.assignment.terragrunt }
154+
- match: '\b(expose)(?:\s+)?(=)(?:\s+)?'
155+
captures:
156+
1: { name: support.output.attribute.terragrunt }
157+
2: { name: keyword.operator.assignment.terragrunt }
158+
- match: '\b(merge_strategy)(?:\s+)?(=)(?:\s+)?'
159+
captures:
160+
1: { name: support.output.attribute.terragrunt }
161+
2: { name: keyword.operator.assignment.terragrunt }
162+
163+
- include: "#definition-right"
164+
136165
- name: "meta.inputs.terragrunt"
137166
begin: '\b(inputs)([\w\-\"$])?(?:\s+)?(=)(?:\s+)?({)'
138167
beginCaptures:

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "terraform",
33
"displayName": "Terraform",
44
"description": "Terraform configuration language support (includes Terragrunt)",
5-
"version": "0.2.2",
5+
"version": "0.2.3",
66
"icon": "icon.png",
77
"keywords": [
88
"terraform",

0 commit comments

Comments
 (0)