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

Tighten up float literal lexing. #11480

Merged
merged 1 commit into from
Jan 12, 2014
Merged

Conversation

SiegeLord
Copy link
Contributor

This fixes the incorrect lexing of things like:

let b = 0o2f32;
let d = 0o4e6;
let f = 0o6e6f32;

and brings the float literal lexer in line with the description of the float literals in the manual.

@eminence
Copy link
Contributor

Seems like the new files should have a copyright year of 2014, not 2012

Specifically, dissallow setting the number base for every type of float
literal, not only those that contain the decimal point. This is in line with
the description in the manual.
@SiegeLord
Copy link
Contributor Author

Can't believe I let that slip through... fixed.

bors added a commit that referenced this pull request Jan 12, 2014
This fixes the incorrect lexing of things like:

~~~rust
let b = 0o2f32;
let d = 0o4e6;
let f = 0o6e6f32;
~~~

and brings the float literal lexer in line with the description of the float literals in the manual.
@bors bors closed this Jan 12, 2014
@bors bors merged commit 5ea6d02 into rust-lang:master Jan 12, 2014
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.

4 participants