Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows uppercase prefixes in JS number literals #1151

Merged
merged 1 commit into from
Jul 2, 2017
Merged

Allows uppercase prefixes in JS number literals #1151

merged 1 commit into from
Jul 2, 2017

Conversation

mariusschulz
Copy link
Contributor

@mariusschulz mariusschulz commented Jun 29, 2017

JavaScript allows both lowercase and uppercase prefixes in number literals:

const hex1 = 0x2A;      // 42
const hex2 = 0X2A;      // 42

const bin1 = 0b101010;  // 42
const bin2 = 0B101010;  // 42

const oct1 = 0o52;      // 42
const oct2 = 0O52;      // 42

This PR introduces support for 0X, 0B, and 0O.

JavaScript allows both lowercase and uppercase prefixes in number literals. With this commit, `0X`, `0B`, and `0O` are now supported as well.
@LeaVerou LeaVerou merged commit d4ee904 into PrismJS:gh-pages Jul 2, 2017
@LeaVerou
Copy link
Member

LeaVerou commented Jul 2, 2017

LGTM. Thanks!

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.

None yet

2 participants