Skip to content

Tablegen lexer fix#2972

Merged
birkenfeld merged 5 commits intopygments:masterfrom
Spill-Tea:tablegen_lexer_fix
Feb 20, 2026
Merged

Tablegen lexer fix#2972
birkenfeld merged 5 commits intopygments:masterfrom
Spill-Tea:tablegen_lexer_fix

Conversation

@Spill-Tea
Copy link
Copy Markdown
Contributor

This addresses #2940. The TableGenLexer can hit an infinite loop within the codeblock context.
I also update the incorrect token Comment.SingleLine -> Comment.Single, using what is standard across pygments.

Copy link
Copy Markdown
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, sorry about that.

@kurtmckee
Copy link
Copy Markdown
Contributor

@frasercrmck No worries! 👍

@Spill-Tea
Copy link
Copy Markdown
Contributor Author

@frasercrmck Hey - just pinging this issue again, because this fix impacts developers. Is there another maintainer we can request to review this PR to get merged?

@frasercrmck
Copy link
Copy Markdown
Contributor

@frasercrmck Hey - just pinging this issue again, because this fix impacts developers. Is there another maintainer we can request to review this PR to get merged?

I'm not sure, sorry. I'm not a maintainer here and don't know the protocol.

@Spill-Tea
Copy link
Copy Markdown
Contributor Author

@Anteru I think you might be one of the current active maintainers of this repo?

@birkenfeld
Copy link
Copy Markdown
Member

LGTM, thanks.

@birkenfeld birkenfeld merged commit 96fff34 into pygments:master Feb 20, 2026
15 checks passed
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants