Skip to content

Support Terraform 0.14 syntax #1756

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

Merged
merged 2 commits into from
May 2, 2021
Merged

Support Terraform 0.14 syntax #1756

merged 2 commits into from
May 2, 2021

Conversation

lgiordani
Copy link
Contributor

This is my second attempt to write a Pygments lexer, and the first one didn't go very well, so apologies in advance if I misused part of the API.

This has been tested against my whole code base which is more than 100k lines of TF code. Even though it doesn't span the whole syntax and resources i thing it's a good test. I cannot publish it, though, so I went for smaller tests that highlight the issues I had.

Let me know if you think that is enough.

@lgiordani
Copy link
Contributor Author

I'm not actually sure what W119: Instead of negating character class, flip case of builtin class means in the regexlint output. Any help?

@birkenfeld
Copy link
Member

Ah yes - the builtin classes like \s, \w have opposites \S, \W.

@lgiordani
Copy link
Contributor Author

Oh! That simple 😅 Thanks, I'm going to fix it

@Anteru Anteru merged commit ac40a66 into pygments:master May 2, 2021
@Anteru Anteru added this to the 2.9 milestone May 2, 2021
@lgiordani
Copy link
Contributor Author

@Anteru Thanks for merging it!

@Anteru Anteru linked an issue Jun 20, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HashiCorp Configuration Language (HCL) Support
3 participants