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

Support numeric separator (i.e. 123_456) #129

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Jan 11, 2018

ECMAScript numeric separator proposal is now on stage3

https://github.com/tc39/proposal-numeric-separator

and will come to TypeScript at version 2.7.

microsoft/TypeScript#20324

Example:

const i = 123_456;
const x = 0x1fa_EF6;
const f = 123_456.0_456;
const f2 = 123_456.4_5e1_2;

I added syntax highlight support for this feature. I confirmed it works on my machine:

2018-01-11 11 57 02

ECMAScript numeric separator proposal is now on stage3

https://github.com/tc39/proposal-numeric-separator

and will come to TypeScript at version 2.7.

microsoft/TypeScript#20324

Example:

```typescript
const i = 123_456;
const x = 0x1fa_EF6;
const f = 123_456.0_456;
const f2 = 123_456.4_5e1_2;
```
@leafgarland leafgarland merged commit be2efbb into leafgarland:master Jan 23, 2018
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.

2 participants