The package has been adopted by the SublimeText GitHub org and now lives at https://github.com/SublimeText/Terraform/ for the community to maintain. This is accompanied by many changes to bring the syntax definition up to current standards.
Added
- Declare hyphens as sub-word separators. (@FichteFoll, #60)
- Special highlighting for
for_each
andcount
meta arguments (keyword.control
). (@FichteFoll, #59) - Highlighting of more special language variables:
each
,count
andself
. (@FichteFoll, #58) - Highlighting for
ephemeral
blocks. (@TerminalFi, #70) - A separate syntax definition for
terraform plan
output (@michaelblyons, #51, #68) - Special highlighting for AWS ACL resource references in strings. (@michaelblyons, @deathaxe, #69, #76)
- Support JSON-style objects (requires ST 4180). (@michaelblyons, #54, #71)
- Scope-based folding rules. (@deathaxe, #81)
- Consistent indentation rules. (@deathaxe, #82)
- Highlight unclosed strings and stray closing brackets as illegal. (@FichteFoll, #91)
Changed
- Switched to syntax version 2.
This breaks compatibility with ST builds before 4000, but the previous version can still be installed on older builds. (@FichteFoll, #62) - Adapted and improved many scope names to standards that have been established over the past years for the default packages:
- String interpolation meta scopes and punctuation (@FichteFoll, #58)
- Keywords (@FichteFoll, @deathaxe, #58, #78, #86)
- Attribute access punctuation (@FichteFoll, #58)
- Punctuation scopes in
for
expressions (@FichteFoll, #58) - Blocks, including indexing for "name" labels (@michaelblyons, @FichteFoll, #69, #87)
- Operators (@michaelblyons, #66)
- Numbers (@deathaxe, #77)
- Brackets (@deathaxe, #80)
- Function calls (@deathaxe, #83)
- Updated the built-in function list for highlighting. (@FichteFoll, #59)
- Renamed many contexts and resolved various anonymous contexts for better extensibility. (@deathaxe, #75, #79)
Removed
- Removed various files targeting older ST versions, notably the old
.tmLanguage
syntax definition. This breaks compatibility with ST 2, but the previous version can still be installed on older builds. (@FichteFoll, #63)
Fixed
- Improved matching of identifiers by adding a scope and properly recognizing hyphens. (@FichteFoll, #60)
- Support identifiers starting with an underscore character (@FichteFoll, #43, #64).