@@ -108,7 +108,7 @@ mod recursion {
108
108
}
109
109
}
110
110
111
- /// Guard that increass the remaining depth by 1 on drop
111
+ /// Guard that increases the remaining depth by 1 on drop
112
112
pub struct DepthGuard {
113
113
remaining_depth : Rc < Cell < usize > > ,
114
114
}
@@ -194,7 +194,7 @@ const DEFAULT_REMAINING_DEPTH: usize = 50;
194
194
/// nested such that the following declaration is possible:
195
195
/// `ARRAY<ARRAY<INT>>`
196
196
/// 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
198
198
/// either a `>` or `>>` token in such cases, remembering which variant we
199
199
/// matched.
200
200
/// In the latter case having matched a `>>`, the parent type will not look to
@@ -1075,7 +1075,7 @@ impl<'a> Parser<'a> {
1075
1075
let expr = self . parse_subexpr ( Self :: PLUS_MINUS_PREC ) ?;
1076
1076
Ok ( Expr :: Prior ( Box :: new ( expr) ) )
1077
1077
}
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
1079
1079
// identifier, a function call, or a simple identifier:
1080
1080
_ => match self . peek_token ( ) . token {
1081
1081
Token :: LParen | Token :: Period => {
@@ -2009,7 +2009,7 @@ impl<'a> Parser<'a> {
2009
2009
/// 4. INTERVAL '1:1:1.1' HOUR (5) TO SECOND (5)
2010
2010
/// 5. INTERVAL '1.1' SECOND (2, 2)
2011
2011
/// 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
2013
2013
/// ```
2014
2014
///
2015
2015
/// Note that we do not currently attempt to parse the quoted value.
@@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> {
2749
2749
match token. token {
2750
2750
Token :: Word ( Word {
2751
2751
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
2753
2753
quote_style : quote_style @ ( Some ( '"' ) | None ) ,
2754
2754
// some experimentation suggests that snowflake permits
2755
2755
// any keyword here unquoted.
@@ -2948,7 +2948,7 @@ impl<'a> Parser<'a> {
2948
2948
Token :: Word ( w) if w. keyword == Keyword :: NOT => match self . peek_nth_token ( 1 ) . token {
2949
2949
// The precedence of NOT varies depending on keyword that
2950
2950
// 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
2952
2952
// is not an infix operator, and therefore has zero
2953
2953
// precedence.
2954
2954
Token :: Word ( w) if w. keyword == Keyword :: IN => Ok ( Self :: BETWEEN_PREC ) ,
@@ -3251,7 +3251,7 @@ impl<'a> Parser<'a> {
3251
3251
}
3252
3252
3253
3253
/// If the current token is the `expected` keyword, consume the token.
3254
- /// Otherwise return an error.
3254
+ /// Otherwise, return an error.
3255
3255
pub fn expect_keyword ( & mut self , expected : Keyword ) -> Result < ( ) , ParserError > {
3256
3256
if self . parse_keyword ( expected) {
3257
3257
Ok ( ( ) )
@@ -4508,7 +4508,7 @@ impl<'a> Parser<'a> {
4508
4508
self . peek_token ( ) ,
4509
4509
) ;
4510
4510
} ;
4511
- // Many dialects support the non standard `IF EXISTS` clause and allow
4511
+ // Many dialects support the non- standard `IF EXISTS` clause and allow
4512
4512
// specifying multiple objects to delete in a single statement
4513
4513
let if_exists = self . parse_keywords ( & [ Keyword :: IF , Keyword :: EXISTS ] ) ;
4514
4514
let names = self . parse_comma_separated ( |p| p. parse_object_name ( false ) ) ?;
@@ -4822,7 +4822,7 @@ impl<'a> Parser<'a> {
4822
4822
continue ;
4823
4823
}
4824
4824
_ => {
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.
4826
4826
self . prev_token ( ) ;
4827
4827
}
4828
4828
}
@@ -7278,7 +7278,7 @@ impl<'a> Parser<'a> {
7278
7278
// ignore the <separator> and treat the multiple strings as
7279
7279
// a single <literal>."
7280
7280
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
7282
7282
Token :: DoubleQuotedString ( s) => Ok ( Some ( Ident :: with_quote ( '\"' , s) ) ) ,
7283
7283
_ => {
7284
7284
if after_as {
0 commit comments