Skip to content

Terraform: Fix class name lexing#2097

Merged
Anteru merged 3 commits intopygments:masterfrom
amitkummer:terraform-comment
Mar 27, 2022
Merged

Terraform: Fix class name lexing#2097
Anteru merged 3 commits intopygments:masterfrom
amitkummer:terraform-comment

Conversation

@amitkummer
Copy link
Copy Markdown
Contributor

Fixes #2094.

The blockname state did not have a #pop after it's only rule, which caused outputting errors in #2094.

Instead of adding a #pop, I merged the blockname state with the rule that uses it, to achieve the exact same lexing logic, but without another state in the lexer.

The `blockname` state did not have a `#pop` after it's only rule,
which caused outputting errors in pygments#2094.

Instead of adding a `#pop`, I merged the `blockname` state with the
rule that uses it, to achieve the exact same lexing logic, but without
another state in the lexer.
@Anteru Anteru self-assigned this Mar 27, 2022
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Mar 27, 2022
@Anteru Anteru added this to the 2.12.0 milestone Mar 27, 2022
@Anteru Anteru merged commit f06f6d6 into pygments:master Mar 27, 2022
@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Mar 27, 2022

Merged, thanks a lot!

@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Mar 27, 2022
@lorengordon
Copy link
Copy Markdown

Curious if there's a date for the next release? Would like to see if this also fixes the basic HCL syntax issue reported in #1353 ...

@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Apr 23, 2022

It should be any moment now, I'm just having trouble finding some time to push it across the finish line.

@lorengordon
Copy link
Copy Markdown

That did the trick, thanks @Anteru!

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.

Terraform comments are highlighted as errors

3 participants