-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HashiCorp Configuration Language (HCL) Support #1353
Comments
Specification: https://github.com/hashicorp/hcl |
pygments does support HCL but you have to label it as |
Good catch, totally missed that one. Thanks! |
Can you please have a look at #1756? Feedback is welcome. Thanks! |
@lgiordani I have a block that looks like this, which is failing when using pygments 2.9.0 with
|
@lorengordon I'll have a look as soon as possible, thanks for the test case |
Can someone confirm this fixed by #1756? I see an error on the first |
I am using terragrunt that also uses HCL for configuration. The changes from #1756 do not fix that. Should I open another issue for this (even though it's using HCL)? An example for terragrunt's configuration is below:
|
Given #1756 doesn't fix your issue, but is already merged, I'd suggest to open a new one. For my understanding: Is terragrunt using a dialect of HCL or is that a problem for "plain" HCL? |
Hi all, my work on #1756 was checked against a large Terraform code base (~100k lines), but I didn't implement the HCL specification following it rule by rule, so I'm not surprised that isn't covered. I think it's simpler to open a new issue with the failing use case and steps to reproduce so that whoever has time to look into it can easily create the test environment. |
@lgiordani Just closing the loop, there's a patch for the problem I was noticing in #1987 ... |
Thank you @lorengordon! |
There's a chance support for the syntax regression I mentioned was fixed in #2097. Just waiting on the next release to test it. |
Can confirm #2097 fixed the issue for us, in the 2.12.0 release. |
Thank you @lorengordon! |
The HashiCorp Configuration Language (HCL) is becoming very popular these days and also very handy to have in other projects such as MediaWiki, which make use of pygments.
The text was updated successfully, but these errors were encountered: