syntax
syntax copied to clipboard
TextMate grammars for highlighting HCL, HCL-based languages and Sentinel.
## Background Currently GitHub uses https://github.com/alexlouden/Terraform.tmLanguage for highlighting HCL: https://github.com/github/linguist/blob/cddf7476af4c95d1572956ffc5c0cb84f7e431c5/lib/linguist/languages.yml#L2384-L2399 That project is primarily used for highlighting in Sublime Text and has also limited maintenance capacity as per https://github.com/alexlouden/Terraform.tmLanguage/issues/36 ##...
A name-spaced function that has an object as its first argument is incorrectly highlighted. It looks like it was recognized as a block instead. ## Example ```hcl provider::terraform::encode_tfvars({ example, "Hello!",...
### Extension Version v2.26.20230511 ### VS Code Version Version: 1.79.1 (user setup) Commit: 4cb974a7aed77a74c7813bdccd99ee0d04901215 Date: 2023-06-12T16:14:05.102Z Electron: 22.5.7 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.19044 ### Operating...
## History The main context in which we expect HCL/Terraform grammars to be used is to highlight whole HCL "bodies". For example ```hcl attr = "foobar" block "label" { another...
## Context As part of https://github.com/hashicorp/terraform-ls/issues/37 we discovered that there's need for rendering function signatures in a markdown hover popup. Because signatures aren't technically valid HCL, the existing grammar(s) do...
## Background HCL and Terraform languages evolve over time and the existing community-maintained PrismJS grammar doesn't accurately capture the state of these languages or relationship between HCL and Terraform. In...
## Problem Statement This is to follow up on https://github.com/hashicorp/terraform-ls/pull/827 which introduces semantic highlighting of type declarations. Type declarations are highlighted **by the server** as `keyword`. Our grammar currently highlights...
I'm not tied to filenames, but from your response we appear to be in agreement that this README should be a landing page and not a catalogue of all the...
https://github.com/hashicorp/syntax#3rd-parties With generator this now seems outdated. We may want to update it to provide more accurate guidance at some point.
The current version of the Terraform language grammar contains a list of built-in functions. However, as we don't know which version of Terraform a user uses, it is highly possible...