diff options
| author | topecongiro <seuchida@gmail.com> | 2017-03-17 09:03:52 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-03-18 21:16:16 +0900 |
| commit | 8eaac0843eb206c37b52db9d96094503487cd076 (patch) | |
| tree | dc104dfac14b38b7d5505e1cfaf0987b2b53b75a /src/libsyntax/parse | |
| parent | df3ab375f36f78dc25c36c08ac10ca7c8ec93fca (diff) | |
| download | rust-8eaac0843eb206c37b52db9d96094503487cd076.tar.gz rust-8eaac0843eb206c37b52db9d96094503487cd076.zip | |
Parse 0e+10 as a valid floating-point literal
Fixes issue #40408.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index de8a87e3a2b..d48cf6911ed 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -725,7 +725,7 @@ impl<'a> StringReader<'a> { base = 16; num_digits = self.scan_digits(16, 16); } - '0'...'9' | '_' | '.' => { + '0'...'9' | '_' | '.' | 'e' | 'E' => { num_digits = self.scan_digits(10, 10) + 1; } _ => { |
