File tree Expand file tree Collapse file tree
crates/vim9-parser/src/cmds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,4 +28,5 @@ default-members = [
2828 " crates/vim9-lexer" ,
2929 " crates/vim9-parser" ,
3030 " crates/vim9-gen" ,
31+ " ."
3132]
Original file line number Diff line number Diff line change @@ -33,13 +33,11 @@ pub struct ElseCommand {
3333
3434impl IfCommand {
3535 pub fn parse ( parser : & Parser ) -> Result < ExCommand > {
36- let if_endings: HashSet < String > = HashSet :: from_iter (
37- vec ! [
38- "elseif" . to_string( ) ,
39- "else" . to_string( ) ,
40- "endif" . to_string( ) ,
41- ] ,
42- ) ;
36+ let if_endings: HashSet < String > = HashSet :: from_iter ( vec ! [
37+ "elseif" . to_string( ) ,
38+ "else" . to_string( ) ,
39+ "endif" . to_string( ) ,
40+ ] ) ;
4341
4442 Ok ( ExCommand :: If ( IfCommand {
4543 if_tok : parser. expect_identifier_with_text ( "if" ) ?. into ( ) ,
Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ pub struct TryCommand {
1717
1818impl TryCommand {
1919 pub fn parse ( parser : & Parser ) -> Result < ExCommand > {
20- let try_endings: HashSet < String > = HashSet :: from_iter (
21- vec ! [
22- "catch" . to_string( ) ,
23- "finally" . to_string( ) ,
24- "endtry" . to_string( ) ,
25- ] ,
26- ) ;
20+ let try_endings: HashSet < String > = HashSet :: from_iter ( vec ! [
21+ "catch" . to_string( ) ,
22+ "finally" . to_string( ) ,
23+ "endtry" . to_string( ) ,
24+ ] ) ;
2725
2826 Ok ( ExCommand :: Try ( TryCommand {
2927 try_ : parser. expect_identifier_with_text ( "try" ) ?. into ( ) ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments