Skip to content

C++: Added support for binary numbers and single quote separators#1887

Merged
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:cpp-number-fix
May 28, 2019
Merged

C++: Added support for binary numbers and single quote separators#1887
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:cpp-number-fix

Conversation

@RunDevelopment
Copy link
Member

This PR fixes #1886.

The new number pattern is based on @nabijaczleweli's pattern with the addition of binary integer literals.

Example

image


@nabijaczleweli, please confirm that this fixes your issue.

@nabijaczleweli
Copy link

And so it does! Thank you!

@RunDevelopment RunDevelopment merged commit 3de29e7 into PrismJS:master May 28, 2019
@RunDevelopment RunDevelopment deleted the cpp-number-fix branch May 28, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support separating single quotes in C++ floating point and integer literals

2 participants