Skip to content

Remove superfluous parentheses from PostgresExplainLexer - #3232

Merged
birkenfeld merged 1 commit into
pygments:masterfrom
jvoisin:pgex
Jul 28, 2026
Merged

Remove superfluous parentheses from PostgresExplainLexer#3232
birkenfeld merged 1 commit into
pygments:masterfrom
jvoisin:pgex

Conversation

@jvoisin

@jvoisin jvoisin commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Unfortunately, I don't think there's an easy way to have a regexlinter check for that :/

@birkenfeld

Copy link
Copy Markdown
Member

LGTM! But why not? It already has Pygments specific info about the token assignment if I'm not wrong, e.g. to check for the correct number of groups for bygroups()

@birkenfeld
birkenfeld merged commit 19c5817 into pygments:master Jul 28, 2026
17 checks passed
thatch pushed a commit to thatch/regexlint that referenced this pull request Jul 31, 2026
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.

2 participants