mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
fix: Fix float parser hack creating empty NameRef tokens
This commit is contained in:
parent
d9e9ca2981
commit
cba39f8553
4 changed files with 46 additions and 7 deletions
|
@ -961,6 +961,7 @@ impl TtTreeSink<'_> {
|
|||
if has_pseudo_dot {
|
||||
assert!(right.is_empty(), "{left}.{right}");
|
||||
} else {
|
||||
assert!(!right.is_empty(), "{left}.{right}");
|
||||
self.inner.start_node(SyntaxKind::NAME_REF);
|
||||
self.inner.token(SyntaxKind::INT_NUMBER, right);
|
||||
self.inner.finish_node();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue