@@ -7,14 +7,15 @@ use parser::{
77 self , new_parser, ArrayLiteral , AssignStatement , AugroupCommand ,
88 AutocmdCommand , Body , BreakCommand , CallCommand , CallExpression ,
99 ContinueCommand , DeclCommand , DefCommand , DeferCommand , DictAccess ,
10- DictLiteral , EchoCommand , ExecuteCommand , ElseCommand , ElseIfCommand , ExCommand ,
11- Expandable , ExportCommand , Expression , ForCommand , GroupedExpression ,
12- Heredoc , Identifier , IfCommand , ImportCommand , IndexExpression , IndexType ,
13- InfixExpression , InnerType , Lambda , Literal , MethodCall , MutationStatement ,
14- PrefixExpression , RawIdentifier , Register , ReturnCommand , ScopedIdentifier ,
15- SharedCommand , Signature , StatementCommand , Ternary , TryCommand , Type ,
16- UnpackIdentifier , UserCommand , VarCommand , Vim9ScriptCommand , VimBoolean ,
17- VimKey , VimNumber , VimOption , VimScope , VimString , WhileCommand ,
10+ DictLiteral , EchoCommand , ElseCommand , ElseIfCommand , ExCommand ,
11+ ExecuteCommand , Expandable , ExportCommand , Expression , ForCommand ,
12+ GroupedExpression , Heredoc , Identifier , IfCommand , ImportCommand ,
13+ IndexExpression , IndexType , InfixExpression , InnerType , Lambda , Literal ,
14+ MethodCall , MutationStatement , PrefixExpression , RawIdentifier , Register ,
15+ ReturnCommand , ScopedIdentifier , SharedCommand , Signature ,
16+ StatementCommand , Ternary , TryCommand , Type , UnpackIdentifier , UserCommand ,
17+ VarCommand , Vim9ScriptCommand , VimBoolean , VimKey , VimNumber , VimOption ,
18+ VimScope , VimString , WhileCommand ,
1819} ;
1920
2021// this word is missspelled
@@ -1275,7 +1276,7 @@ pub fn eval(program: parser::Program, is_test: bool) -> String {
12751276
12761277pub fn generate ( contents : & str , is_test : bool ) -> String {
12771278 let lexer = Lexer :: new ( contents) ;
1278- let mut parser = new_parser ( lexer) ;
1279+ let parser = new_parser ( & lexer) ;
12791280 let program = parser. parse_program ( ) ;
12801281
12811282 let result = eval ( program, is_test) ;
0 commit comments