Thanks to visit codestin.com
Credit goes to github.com

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

Match Python 3 octal literals #53

Merged
merged 1 commit into from
Feb 10, 2015
Merged

Match Python 3 octal literals #53

merged 1 commit into from
Feb 10, 2015

Conversation

nicktimko
Copy link
Contributor

image

0777 up to Python 2.7, 0o777 in 2.6/3.0 and up. Also see PEP-3127 for full integer literal syntax

PEP-3127 for full integer literal syntax
@thedaniel
Copy link
Contributor

Thanks!

thedaniel added a commit that referenced this pull request Feb 10, 2015
@thedaniel thedaniel merged commit 59d4519 into atom:master Feb 10, 2015
@nicktimko nicktimko deleted the python-3-octals branch February 10, 2015 17:37
@nicktimko
Copy link
Contributor Author

I probably should have also added binary literals (e.g. 0b10101), but I don't actually know what the name field does...can I freely create 'constant.numeric.integer.binary.python' (and long.binary) or does that get referenced somewhere else? All I can figure out is that it all gets turned into classes on the span tag, but I don't want to break something magical...

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.

2 participants