Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Added highlighting for C++23 size suffixes in integer literals #66

Open
jecs wants to merge 1 commit into vim-jp:master
base: master
Choose a base branch
Loading
from jecs:patch-1

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.

Copy link
Member

mattn commented Mar 27, 2024

LGTM

jecs reacted with thumbs up emoji

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.

Reviewers

1 more reviewer

@e-kwsm e-kwsm e-kwsm left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /