@@ -108,7 +108,7 @@ mod recursion {
108108 }
109109 }
110110
111- /// Guard that increass the remaining depth by 1 on drop
111+ /// Guard that increases the remaining depth by 1 on drop
112112 pub struct DepthGuard {
113113 remaining_depth : Rc < Cell < usize > > ,
114114 }
@@ -194,7 +194,7 @@ const DEFAULT_REMAINING_DEPTH: usize = 50;
194194/// nested such that the following declaration is possible:
195195/// `ARRAY<ARRAY<INT>>`
196196/// But the tokenizer recognizes the `>>` as a ShiftRight token.
197- /// We work- around that limitation when parsing a data type by accepting
197+ /// We work around that limitation when parsing a data type by accepting
198198/// either a `>` or `>>` token in such cases, remembering which variant we
199199/// matched.
200200/// In the latter case having matched a `>>`, the parent type will not look to
@@ -1075,7 +1075,7 @@ impl<'a> Parser<'a> {
10751075 let expr = self . parse_subexpr ( Self :: PLUS_MINUS_PREC ) ?;
10761076 Ok ( Expr :: Prior ( Box :: new ( expr) ) )
10771077 }
1078- // Here `w` is a word, check if it's a part of a multi-part
1078+ // Here `w` is a word, check if it's a part of a multipart
10791079 // identifier, a function call, or a simple identifier:
10801080 _ => match self . peek_token ( ) . token {
10811081 Token :: LParen | Token :: Period => {
@@ -2009,7 +2009,7 @@ impl<'a> Parser<'a> {
20092009 /// 4. INTERVAL '1:1:1.1' HOUR (5) TO SECOND (5)
20102010 /// 5. INTERVAL '1.1' SECOND (2, 2)
20112011 /// 6. INTERVAL '1:1' HOUR (5) TO MINUTE (5)
2012- /// 7. (MySql & BigQuey only): INTERVAL 1 DAY
2012+ /// 7. (MySql & BigQuery only): INTERVAL 1 DAY
20132013 /// ```
20142014 ///
20152015 /// Note that we do not currently attempt to parse the quoted value.
@@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> {
27492749 match token. token {
27502750 Token :: Word ( Word {
27512751 value,
2752- // path segments in SF dot notation can be unquoted or double quoted
2752+ // path segments in SF dot notation can be unquoted or double- quoted
27532753 quote_style : quote_style @ ( Some ( '"' ) | None ) ,
27542754 // some experimentation suggests that snowflake permits
27552755 // any keyword here unquoted.
@@ -2948,7 +2948,7 @@ impl<'a> Parser<'a> {
29482948 Token :: Word ( w) if w. keyword == Keyword :: NOT => match self . peek_nth_token ( 1 ) . token {
29492949 // The precedence of NOT varies depending on keyword that
29502950 // follows it. If it is followed by IN, BETWEEN, or LIKE,
2951- // it takes on the precedence of those tokens. Otherwise it
2951+ // it takes on the precedence of those tokens. Otherwise, it
29522952 // is not an infix operator, and therefore has zero
29532953 // precedence.
29542954 Token :: Word ( w) if w. keyword == Keyword :: IN => Ok ( Self :: BETWEEN_PREC ) ,
@@ -3251,7 +3251,7 @@ impl<'a> Parser<'a> {
32513251 }
32523252
32533253 /// If the current token is the `expected` keyword, consume the token.
3254- /// Otherwise return an error.
3254+ /// Otherwise, return an error.
32553255 pub fn expect_keyword ( & mut self , expected : Keyword ) -> Result < ( ) , ParserError > {
32563256 if self . parse_keyword ( expected) {
32573257 Ok ( ( ) )
@@ -4508,7 +4508,7 @@ impl<'a> Parser<'a> {
45084508 self . peek_token ( ) ,
45094509 ) ;
45104510 } ;
4511- // Many dialects support the non standard `IF EXISTS` clause and allow
4511+ // Many dialects support the non- standard `IF EXISTS` clause and allow
45124512 // specifying multiple objects to delete in a single statement
45134513 let if_exists = self . parse_keywords ( & [ Keyword :: IF , Keyword :: EXISTS ] ) ;
45144514 let names = self . parse_comma_separated ( |p| p. parse_object_name ( false ) ) ?;
@@ -4822,7 +4822,7 @@ impl<'a> Parser<'a> {
48224822 continue ;
48234823 }
48244824 _ => {
4825- // Put back the semi-colon , this is the end of the DECLARE statement.
4825+ // Put back the semicolon , this is the end of the DECLARE statement.
48264826 self . prev_token ( ) ;
48274827 }
48284828 }
@@ -7278,7 +7278,7 @@ impl<'a> Parser<'a> {
72787278 // ignore the <separator> and treat the multiple strings as
72797279 // a single <literal>."
72807280 Token :: SingleQuotedString ( s) => Ok ( Some ( Ident :: with_quote ( '\'' , s) ) ) ,
7281- // Support for MySql dialect double quoted string, `AS "HOUR"` for example
7281+ // Support for MySql dialect double- quoted string, `AS "HOUR"` for example
72827282 Token :: DoubleQuotedString ( s) => Ok ( Some ( Ident :: with_quote ( '\"' , s) ) ) ,
72837283 _ => {
72847284 if after_as {
0 commit comments