File tree Expand file tree Collapse file tree 1 file changed +15
-21
lines changed Expand file tree Collapse file tree 1 file changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -951,30 +951,24 @@ impl Parser {
951
951
loop {
952
952
let token = & self . next_token ( ) ;
953
953
match token {
954
- Some ( token) => match token {
955
- Token :: SQLWord ( s) => {
956
- if expect_identifier {
957
- expect_identifier = false ;
958
- idents. push ( s. to_string ( ) ) ;
959
- } else {
960
- self . prev_token ( ) ;
961
- break ;
962
- }
963
- }
964
- token if token == separator => {
965
- if expect_identifier {
966
- return parser_err ! ( format!( "Expecting identifier, found {:?}" , token) ) ;
967
- } else {
968
- expect_identifier = true ;
969
- continue ;
970
- }
971
- }
972
- _ => {
954
+ Some ( Token :: SQLWord ( s) ) => {
955
+ if expect_identifier {
956
+ expect_identifier = false ;
957
+ idents. push ( s. to_string ( ) ) ;
958
+ } else {
973
959
self . prev_token ( ) ;
974
960
break ;
975
961
}
976
- } ,
977
- None => {
962
+ }
963
+ Some ( token) if token == separator => {
964
+ if expect_identifier {
965
+ return parser_err ! ( format!( "Expecting identifier, found {:?}" , token) ) ;
966
+ } else {
967
+ expect_identifier = true ;
968
+ continue ;
969
+ }
970
+ }
971
+ _ => {
978
972
self . prev_token ( ) ;
979
973
break ;
980
974
}
You can’t perform that action at this time.
0 commit comments