-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add support for tfvars+tfstate #1
Comments
My pleasure 😃 - happy to help. I don't have time to do any more on this for now, but the following should help whoever is keen: Here are the docs I've been working from:
And I've been using the following Sublime packages:
And here are a few good examples:
|
That's understandable, I chatted with a few folks from the Terraform core team about eventually moving this under That said, I will probably send a few PRs to cover the above ^ and then eventually add this repo ( |
I've added you as a contributor - please feel free to make any changes/additions as you like! Very happy for it to be listed on package control - I was holding off to check you guys were ok with it. |
@alexlouden: i've forked your code to start making it geared for hcl rather than terraform specifically. https://github.com/euforia/HCL.tmLanguage I've changed some of the snippet scopes which still need work and also add .hcl file extension. I wasn't sure what plan was for this project but was wondering if you were open to that idea and would be happy to contribute. @radeksimko: if you don't mind me asking - what is being used for HCL syntax highlighting ? |
Just linking a (positive) answer here: hashicorp/terraform#2030 (comment)
Do you mean on github.com? We had a debate about what the short-term solution (language closest to HCL) should be and we ended up with Ruby, although JavaScript was also pretty close. None of those are ideal, so (I believe) there's an obvious interest in the community to eventually leverage repository like this in github-linguist/linguist#1899 If you were rather asking for definition/docs of HCL itself, the best source is probably https://github.com/hashicorp/hcl 😉 |
Hey @euforia / @radeksimko - as of #19 this repo now supports for the github-linguist/linguist#3392 has just been merged, which means this repo will be used for syntax highlighting |
@alexlouden That is great, I really appreciate the time you spent on this, thanks! 👍 🎉 Can't wait for the next release of |
Looks like it's released! Not sure when it'll hit github.com |
@radeksimko Yew! |
I haven't looked at the tmLanguage specification, but it would be nice to define some kind of mapping for the following:
*.tfvars
=>*.ini
(there may be some small differences in escaping, but I'd just ignore that for any first implementation)*.tfstate
=>*.json
btw. thanks again for the effort invested into this! 👍
The text was updated successfully, but these errors were encountered: