Nova

Extensions


Readme

Unofficial HCL syntax extension for Panic Nova

Based off of the TextMate Terraform bundle (to some extent).

Implements a generic HCL grammar, and uses it to power the Terraform and Packer-specific grammars.

Includes support for tfvars and pkrvars.hcl files, using a subset grammar.

Formatting for Terraform files is provided using your existing Terraform binary and format-on-save can be enabled, in extension preferences.

Eventually this will be moved to the offical Hashicorp language server.

This extension is NOT maintained by Hashicorp.

Extension icon by CC-BY-SA-4.0 Sethvargo, retreived from Wikipedia


Changelog

0.1.20

  • Adds escape sequences in strings
  • Expands the number of accepted escape sequences
  • Adds HCL as a top-level syntax, for configuration files (for example, Consul)
  • Support onWillSave(), per #13
  • improved parsing for provider blocks

0.1.19

  • Fixes rendering bug with for ... in using single-character variable names

0.1.18

  • Adds complex identifiers to for-in statements, such as for one, two in

0.1.17

  • Merge patch show terrform errors on failure to format

0.1.16

  • Improve Packer rendering
  • Fix indentation on Packer

0.1.15

  • Support HEREDOCs in locals declaration blocks

0.1.14

  • Support _name names for locals and variables
  • Terraform provider blocks now support dotted references
  • map and list variable Clips now use correct syntax of map(type)
  • if statements can now correctly include strings

0.1.13

  • Support single-character resource names

0.1.12

  • Improve YAML sublanguage parsing support in HEREDOC statements
  • Adds variable dotted types to Packer HCL
  • Adds dotted types to resource definitions

0.1.11

  • Add function rendering to maps

0.1.10

  • Add syntactic elements to if statements
  • Add syntactic elements to for-in statements
  • JSON HEREDOCs to use the JSON parser
  • Add values parsing to maps
  • Rename interpolations to string-template, for better - highlighting support
  • Rename functions to built-in, for better highlighting support
  • Add numbers, values, and comments to function calls
  • Use type instead of argument for Terraform
  • provider blocks
  • Use definition.type instead of block for Terraform
  • output blocks
  • Improve handling of output block names
  • Use definition.type for Terraform resource blocks
  • Use type.name for resource block names
  • Initial for-in completion

0.1.9

  • Improves rendering of ternary operators

0.1.8

  • Add - to map key names

0.1.7

  • Adds functions and numbers to array parsing

0.1.6

  • Improve cutoffs and handling for variables and dotted references

0.1.5

  • Fix an issue with locals

0.1.4

  • Add pkrvars support
  • README updates

0.1.3

  • Rename "Vendor" to "Organisation" in extension.json
  • Add "type" support to data and resource objects
  • Add packer to language activation events

0.1.2

  • Improves handling of blocks, maps, and inner blocks

0.1.1

  • Support any HEREDOC tags
  • Add initial syntax support for variables, locals, terraform blocks
  • Add formatter support, configuration for formatting
  • On-the-fly bin path updates
  • Add initial support for code symbols
  • Cleanup for Nova 4
  • Add initial clips

0.1.0

Initial release Adds: - Blocks - Inner blocks - Variables - HEREDOCs - assignments - Some keywords - Functions


License

The MIT License (MIT)

Copyright (c) 2020 Eiara Limited

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.