Skip to content

Conversation

@dwo
Copy link

@dwo dwo commented Jan 30, 2026

The constant highlight regex ^[A-Z][A-Z_]*$ did not allow digits or leading underscores, so identifiers like HTTP2, SHA256, _PRIVATE and __MAX_RETRIES were not highlighted as constants despite following PEP 8 naming conventions.

Updated the regex to ^_*[A-Z][A-Z_0-9]*$ and added highlight tests for identifier naming conventions.

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.

1 participant