]> git.lizzy.rs Git - rust.git/commit
Improve parsing of incomplete field accesses in preparation for field completion
authorFlorian Diebold <flodiebold@gmail.com>
Tue, 25 Dec 2018 13:48:54 +0000 (14:48 +0100)
committerFlorian Diebold <flodiebold@gmail.com>
Tue, 25 Dec 2018 14:16:42 +0000 (15:16 +0100)
commit0d724ea572a5dd26acbbf2eb4538eabe454fb894
tree077ffa2bda1405af9a91ea9c7ad61f9cb1fc0098
parent55c941cd9fb90c9340f01981e113aabd058b185b
Improve parsing of incomplete field accesses in preparation for field completion

We need to be able to get the receiver even if there is no field name yet, and
currently "a." wouldn't get parsed as a field name at all. This seems to help.
crates/ra_syntax/src/grammar/expressions.rs
crates/ra_syntax/tests/data/parser/err/0029_field_completion.rs [new file with mode: 0644]
crates/ra_syntax/tests/data/parser/err/0029_field_completion.txt [new file with mode: 0644]