Skip to content

Commit d8cf2ae

Browse files
authored
Merge pull request #94 from SublimeText/draft
Draft 2.0.0 release
2 parents df9a70e + aa8820e commit d8cf2ae

File tree

3 files changed

+93
-20
lines changed

3 files changed

+93
-20
lines changed

CHANGELOG.md

Lines changed: 71 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,92 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## v2.0.0 - 2025-05-11
8+
9+
The package has been adopted by the SublimeText GitHub org and now lives at
10+
<https://github.com/SublimeText/Terraform/> for the community to maintain.
11+
This is accompanied by many changes
12+
to bring the syntax definition up to current standards.
813

914
### Added
1015

11-
- Declare hyphens as sub-word separators.
12-
- Special highlighting for `for_each` and `count` meta arguments.
13-
- Highlighting of more special language variables: `each`, `count` and `self`.
16+
- Declare hyphens as sub-word separators. (@FichteFoll, #60)
17+
- Special highlighting for `for_each` and `count` meta arguments (`keyword.control`). (@FichteFoll, #59)
18+
- Highlighting of more special language variables: `each`, `count` and `self`. (@FichteFoll, #58)
19+
- Highlighting for `ephemeral` blocks. (@TerminalFi, #70)
20+
- A separate syntax definition for `terraform plan` output (@michaelblyons, #51, #68)
21+
- Special highlighting for AWS ACL resource references in strings. (@michaelblyons, @deathaxe, #69, #76)
22+
- Support JSON-style objects. (@michaelblyons, #54, #71)
23+
- Scope-based folding rules. (@deathaxe, #81)
24+
- Consistent indentation rules. (@deathaxe, #82)
25+
- Highlight unclosed strings and stray closing brackets as illegal. (@FichteFoll, #91)
1426

1527
### Changed
1628

17-
- Switch to Syntax version 2. This breaks compatibility with ST builds before 4000!
18-
- Adapt and improve many scope names to standards that have been established
19-
over the past years for the default packages,
20-
including:
21-
* String interpolation meta scopes and punctuation
22-
* Keywords (declarations and `in` inside a `for` expression)
23-
* Attribute access punctuation
24-
* Punctuation scopes in `for` expressions
25-
- Updated the built-in function list for highlighting.
29+
- Switched to syntax version 2.
30+
This breaks compatibility with ST builds before 4000,
31+
but the previous version can still be installed on older builds.
32+
(@FichteFoll, #62)
33+
- Adapted and improved many scope names to standards that have been established
34+
over the past years for the default packages:
35+
* String interpolation meta scopes and punctuation (@FichteFoll, #58)
36+
* Keywords (@FichteFoll, @deathaxe, #58, #78, #86)
37+
* Attribute access punctuation (@FichteFoll, #58)
38+
* Punctuation scopes in `for` expressions (@FichteFoll, #58)
39+
* Blocks, including indexing for "name" labels
40+
(@michaelblyons, @FichteFoll, #69, #87)
41+
* Operators (@michaelblyons, #66)
42+
* Numbers (@deathaxe, #77)
43+
* Brackets (@deathaxe, #80)
44+
* Function calls (@deathaxe, #83)
45+
- Updated the built-in function list for highlighting. (@FichteFoll, #59)
46+
- Renamed many contexts and resolved various anonymous contexts
47+
for better extensibility. (@deathaxe, #75, #79)
2648

2749
### Removed
2850

29-
- Various files targetting older ST versions,
51+
- Removed various files targeting older ST versions,
3052
notably the old `.tmLanguage` syntax definition.
53+
This breaks compatibility with ST 2,
54+
but the previous version can still be installed on older builds.
55+
(@FichteFoll, #63)
3156

3257
### Fixed
3358

34-
- Improved matching of identifiers by adding a scope and properly recognizing hyphens.
35-
- Support identifiers starting with an underscore character (#43).
59+
- Improved matching of identifiers by adding a scope and properly recognizing hyphens. (@FichteFoll, #60)
60+
- Support identifiers starting with an underscore character (@FichteFoll, #43, #64).
3661

3762
---
3863

64+
## v1.3.1 - 2024-02-03
65+
66+
### Added
67+
68+
- `.nomad` files are also recognized by the Terraform syntax. (@Quenty, #55)
69+
70+
## v1.3.0 - 2024-01-18
71+
72+
### Changed
73+
74+
- Separate HCL syntax into its own file and report it as `source.hcl` (rather than `source.terraform`). (@rchl, #56)
75+
- Update links to official docs on terraform.io. (@totoroot, #53)
76+
77+
## v1.2.0 - 2021-06-21
78+
79+
### Changed
80+
81+
- Split the tfvars handling into a separate syntax file. (@rchl, #49) <br>
82+
This improves interoperability with terraform-ls, e.g. via LSP.
83+
84+
## v1.1.0 - 2021-05-17
85+
86+
### Fixed
87+
88+
- Removed quotes around variable types in snippets. (@notnmeyer, #42)
89+
3990
## v1.0.0 - 2020-01-20
4091

41-
A huge thanks to @patrickrgaffney for this amazing contribution. [#39](https://github.com/alexlouden/Terraform.tmLanguage/pull/39)
92+
A huge thanks to @patrickrgaffney for this amazing contribution. (#39)
4293

4394
### Added
4495

@@ -267,11 +318,11 @@ Initial release.
267318
[indices]: https://www.terraform.io/docs/configuration/expressions.html#indices-and-attributes
268319
[named-values]: https://www.terraform.io/docs/configuration/expressions.html#references-to-named-values
269320
[old-splat]: https://www.terraform.io/docs/configuration/expressions.html#legacy-attribute-only-splat-expressions
270-
[scopes]: https://www.sublimetext.com/docs/3/scope_naming.html
321+
[scopes]: https://www.sublimetext.com/docs/scope_naming.html
271322
[splat]: https://www.terraform.io/docs/configuration/expressions.html#splat-expressions
272323
[string-templates]: https://www.terraform.io/docs/configuration/expressions.html#string-literals
273324
[strings]: https://www.terraform.io/docs/configuration/expressions.html#string-literals
274-
[subl-format]: https://www.sublimetext.com/docs/3/syntax.html
275-
[tests]: https://www.sublimetext.com/docs/3/syntax.html#testing
325+
[subl-format]: https://www.sublimetext.com/docs/syntax.html
326+
[tests]: https://www.sublimetext.com/docs/syntax.html#testing
276327
[types]: https://www.terraform.io/docs/configuration/types.html
277328
[uom-suffixes]: https://github.com/hashicorp/terraform/issues/3287#issuecomment-241560576

messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"2.0.0": "messages/2.0.0.md"
3+
}

messages/2.0.0.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
v2.0.0 - 2025-05-11
2+
-------------------
3+
4+
The package has been adopted by the SublimeText GitHub org and now lives at
5+
<https://github.com/SublimeText/Terraform/> for the community to maintain.
6+
This is accompanied by many changes
7+
to bring the syntax definition up to current standards,
8+
courtesy of @deathaxe, @FichteFoll, and @michaelblyons.
9+
10+
In summary, the syntax has been aligned with current standards
11+
as they have developed over time for the default syntaxes
12+
and various other third-party syntaxes.
13+
For a detailed list of changes,
14+
please refer to the full changelog at
15+
<https://github.com/SublimeText/Terraform/blob/master/CHANGELOG.md>.
16+
17+
Note that this release is only compatible with ST builds 4180 and higher.
18+
The old version is still available for installation on older builds
19+
but is not maintained anymore.

0 commit comments

Comments
 (0)