Skip to content

Conversation

@TheIronBorn
Copy link

The only really important bit of this is \b(\d[\d_]*(?:\.[\d_]+)?[eE][-+]?[\d_]+)({{float_suffixes}})?\b which now matches literals like 1e8. There's probably a simpler way of solving it but I couldn't find it.

The other changes are just small performance improvements I noticed.

All the syntax checks passed: Success: 3554 assertions in 1 files passed.

@dten
Copy link

dten commented Jan 27, 2018

Again please can you add some tests to https://github.com/rust-lang/rust-enhanced/blob/master/syntax_test_rust.rs

@TheIronBorn
Copy link
Author

That should do it

@dten
Copy link

dten commented Jan 27, 2018

looks good to me

@jasonwilliams jasonwilliams merged commit 296b8e9 into rust-lang:master Jan 28, 2018
urschrei pushed a commit to urschrei/sublime-rust that referenced this pull request Jan 30, 2018
* a few small syntax checking improvements

* use variables in storage type

* add exponent syntax tests
@TheIronBorn TheIronBorn deleted the patch-2 branch January 30, 2018 20:53
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.

3 participants