diff options
| author | bors <bors@rust-lang.org> | 2022-05-05 15:35:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-05 15:35:10 +0000 |
| commit | cc9ae2b89e01a30e441371b9fd3376c3d03a475f (patch) | |
| tree | 9c47f9e5a08d498f92ce51ec1b8a34066a48ef59 /src/test/codegen/src-hash-algorithm | |
| parent | 7dfd1cb572d8d4fd951237361e43ecddd9c9a852 (diff) | |
| parent | d974a0b8894209a041fb06c3c8713d7e8b91cbb7 (diff) | |
| download | rust-cc9ae2b89e01a30e441371b9fd3376c3d03a475f.tar.gz rust-cc9ae2b89e01a30e441371b9fd3376c3d03a475f.zip | |
Auto merge of #12149 - jonas-schievink:literally-just-a-literal, r=jonas-schievink
fix: split float literal tokens at `.` to fix parsing of tuple field accesses This introduces an `ast::FloatLiteral` node, changes the `FLOAT_LITERAL` token to `FLOAT_LITERAL_PART`, and splits any float literal at the `.` character, into a `FLOAT_LITERAL_PART`, and optional `DOT` and trailing `FLOAT_LITERAL_PART` token. The tokens are reassembled when passing them to a macro as a `tt::Literal`. ~~A slight regression is introduced in how float literals are highlighted: the `.` is now highlighted as an operator. I've tried to fix this but couldn't figure out how to highlight the whole `ast::FloatLiteral` node as a unit.~~ This is fixed Fixes https://github.com/rust-lang/rust-analyzer/issues/1109 Fixes https://github.com/rust-lang/rust-analyzer/issues/10492 Fixes https://github.com/rust-lang/rust-analyzer/issues/12107 Fixes https://github.com/rust-lang/rust-analyzer/issues/10560 Fixes https://github.com/rust-lang/rust-analyzer/issues/11487
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
