We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84aea6f commit 8e73ce6Copy full SHA for 8e73ce6
src/tokenizer.rs
@@ -1280,7 +1280,7 @@ impl<'a> Tokenizer<'a> {
1280
s += word.as_str();
1281
return Ok(Some(Token::make_word(s.as_str(), None)));
1282
}
1283
- } else if prev_token.map_or(false, |t| t == &Token::Period) {
+ } else if prev_token == Some(&Token::Period) {
1284
// If the previous token was a period, thus not belonging to a number,
1285
// the value we have is part of an identifier.
1286
0 commit comments