We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2daee6 commit 91d181fCopy full SHA for 91d181f
crates/parser/src/shortcuts.rs
@@ -221,17 +221,13 @@ impl Builder<'_, '_> {
221
// we should emit an error node here
222
(self.sink)(StrStep::Error { msg: "illegal float literal", pos: self.pos });
223
(self.sink)(StrStep::Enter { kind: SyntaxKind::ERROR });
224
- (self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text: text });
+ (self.sink)(StrStep::Token { kind: SyntaxKind::FLOAT_NUMBER, text });
225
(self.sink)(StrStep::Exit);
226
227
// move up
228
229
230
- self.state = if has_pseudo_dot {
231
- State::Normal
232
- } else {
233
- State::PendingExit
234
- };
+ self.state = if has_pseudo_dot { State::Normal } else { State::PendingExit };
235
}
236
237
0 commit comments