Skip to content

uz and zu Integer Literal Suffixes in C and C++#2966

Merged
birkenfeld merged 1 commit intopygments:masterfrom
insertinterestingnamehere:uz
Feb 20, 2026
Merged

uz and zu Integer Literal Suffixes in C and C++#2966
birkenfeld merged 1 commit intopygments:masterfrom
insertinterestingnamehere:uz

Conversation

@insertinterestingnamehere
Copy link
Copy Markdown
Contributor

In C++23, the uz literal suffix was added to allow making size_t typed integers. See P0330R8. There's a similar change proposed but not yet accepted for the C standard. See N3485. This updates the lexer here to recognize that suffix for integer literals.

@birkenfeld
Copy link
Copy Markdown
Member

LGTM.

@birkenfeld birkenfeld merged commit b22ab55 into pygments:master Feb 20, 2026
@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.

3 participants