File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1991,7 +1991,8 @@ mod tests {
1991
1991
} ;
1992
1992
let expected = indoc ! {
1993
1993
"
1994
- WITH a AS (
1994
+ WITH
1995
+ a AS (
1995
1996
SELECT a, b, c
1996
1997
FROM t
1997
1998
WHERE a > 100
Original file line number Diff line number Diff line change @@ -594,6 +594,7 @@ fn get_top_level_reserved_token_no_indent<'i>(input: &mut &'i str) -> PResult<To
594
594
terminated ( "MINUS" , end_of_word) ,
595
595
terminated ( "UNION" , end_of_word) ,
596
596
terminated ( "UNION ALL" , end_of_word) ,
597
+ terminated ( "WITH" , end_of_word) ,
597
598
terminated ( "$$" , end_of_word) ,
598
599
) )
599
600
. parse_next ( & mut uc_input) ;
@@ -987,7 +988,6 @@ fn get_plain_reserved_one_token<'i>(input: &mut &'i str) -> PResult<Token<'i>> {
987
988
988
989
'W' => alt ( (
989
990
terminated ( "WHEN" , end_of_word) ,
990
- terminated ( "WITH" , end_of_word) ,
991
991
terminated ( "WORK" , end_of_word) ,
992
992
terminated ( "WRITE" , end_of_word) ,
993
993
) )
You can’t perform that action at this time.
0 commit comments