We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c817c3 commit 840fbbdCopy full SHA for 840fbbd
1 file changed
src/parser/mod.rs
@@ -9988,14 +9988,7 @@ impl<'a> Parser<'a> {
9988
Some(self.parse_identifier()).transpose()
9989
} else {
9990
// Check if the next token is an identifier (implicit alias)
9991
- let checkpoint = self.index;
9992
- match self.parse_identifier() {
9993
- Ok(ident) => Ok(Some(ident)),
9994
- Err(_) => {
9995
- self.index = checkpoint; // Rewind on failure
9996
- Ok(None)
9997
- }
9998
+ self.maybe_parse(|parser| parser.parse_identifier())
9999
}
10000
10001
0 commit comments