atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

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

Open 50Wliu opened 2 years ago

50Wliu commented 2 years ago

Requirements

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.