Commit graph

20 commits

Author SHA1 Message Date
Roberto Pommella Alegro
599fd416c8 remove accidental text 2022-07-08 21:58:42 +02:00
Roberto Pommella Alegro
aac4f027c5 Add heredoc language injection for HCL
Add a heredoc language injection similar to Ruby for HCL. This allows terraform resources like this to be properly highlighted

```hcl
resource "aws_iam_role" "sample" {
  name               = "sample"
  assume_role_policy = <<JSON
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "AWS": "*"
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
JSON
}
```
2022-07-08 21:58:42 +02:00
Michael Hoffmann
82e43748cf indent(hcl): fix function calls 2022-04-25 23:36:36 +02:00
Michael Hoffmann
b1e8b61a94 indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
2022-04-24 18:57:30 +02:00
mhoffm
09ad32c91b update hcl parser, update queries 2021-09-20 22:39:32 +02:00
Matthew Wynn
649a7e6fe6 indents(hcl): add more indentation rules for HCL 2021-09-16 22:26:48 +02:00
Ronnie Magatti
016c757d11 Address highlight comments about cwd, path, module 2021-09-14 21:36:55 +02:00
Ronnie Magatti
dcf20b8a23 Better differentiate 'keywords' 2021-09-14 21:36:55 +02:00
Mark Ellis
3a9aa6fe88 added very basic HCL indentation support 2021-07-22 19:48:07 +02:00
David Hotham
9bcf658ca4
fold HCL objects (#1479) 2021-07-03 16:00:20 -05:00
mhoffm
8eb29ef93e highlight template interpolation enclosures as punctuation.bracket; cleanup 2021-07-02 19:48:19 +02:00
mhoffm
e607de4e1e update lockfile to point to v0.4.0; update highlight queries 2021-07-02 19:48:19 +02:00
Michael Hoffmann
bd00e4064f Update queries/hcl/highlights.scm
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-07-02 01:56:25 +02:00
mhoffm
a40bce5e36 work on queries; fix macos build 2021-07-02 01:56:25 +02:00
mhoffm
1914317ae7 work on queries 2021-07-02 01:56:25 +02:00
mhoffm
2ea75bf3aa add basic injections 2021-07-02 01:56:25 +02:00
mhoffm
590898bbb7 fix highlights.scm 2021-07-02 01:56:25 +02:00
mhoffm
d6758b2673 improve queries 2021-07-02 01:56:25 +02:00
mhoffm
4a29ccba9b improve queries 2021-07-02 01:56:25 +02:00
mhoffm
9275a15aad add hcl parser 2021-07-02 01:56:25 +02:00