Skip to content
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

Terraform cannot lex terraform containing non-idiomatic single line comment. #2065

Closed
cblegare opened this issue Feb 9, 2022 · 0 comments · Fixed by #2066
Closed

Terraform cannot lex terraform containing non-idiomatic single line comment. #2065

cblegare opened this issue Feb 9, 2022 · 0 comments · Fixed by #2066
Milestone

Comments

@cblegare
Copy link
Contributor

cblegare commented Feb 9, 2022

Hello there, and thank your for Pygments!

The following valid terraform string cannot be lexed:

// Non-idiomatic single-line comment.

See https://www.terraform.io/language/syntax/configuration#comments

This must not happens often since most terraform users will format their code with tools, and

Automatic configuration formatting tools may automatically transform // comments into # comments, since the double-slash style is not idiomatic.

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 a pull request may close this issue.

2 participants