Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Conversation

@jecs
Copy link

@jecs jecs commented Mar 27, 2024

C++23 added support for z and Z size suffixes that can be combined with u or U. More information can be found on the integer literal page of cppreference.com.

@mattn
Copy link
Member

mattn commented Mar 27, 2024

LGTM

@jecs
Copy link
Author

jecs commented Jul 8, 2024

Shall we merge this, then, @mattn ?

Comment on lines +107 to +108
syn match cppNumber display contained "\<0b[01]\('\=[01]\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"
syn match cppNumber display contained "\<0x\x\('\=\x\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"
Copy link

Choose a reason for hiding this comment

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

Suggested change
syn match cppNumber display contained "\<0b[01]\('\=[01]\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"
syn match cppNumber display contained "\<0x\x\('\=\x\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"
syn match cppNumber display contained "\<0[bB][01]\('\=[01]\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"
syn match cppNumber display contained "\<0[xX]\x\('\=\x\+\)*\([Uu]\=[Zz]\|[Zz][Uu]\)\>"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants