Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add support for PEP-515, underscores in numeric literals #334

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

winstliu
Copy link
Contributor

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Adds support for separating numbers with underscores, per PEP-515.

Also adds specs for numbers.

Alternate Designs

None, this is a PEP.

Benefits

Proper syntax highlighting! And regression tests!

Possible Drawbacks

People using Python versions < 3.6 will also get this highlighting, even though the PEP is only applicable to >= 3.6.

Applicable Issues

Fixes #221.

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.

PEP 515: Underscores in numeric literals
1 participant