diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 4c0e54d..cbd5a22 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -139,7 +139,7 @@ fn get_string(lexer: &mut Lexer) -> Option { lexer.bump(lexer.remainder().find("*/")?); let string = lexer.slice()[2..].to_owned(); lexer.bump(2); - + Some(string) } diff --git a/ablescript_cli/src/repl.rs b/ablescript_cli/src/repl.rs index eca64b9..5fa2468 100644 --- a/ablescript_cli/src/repl.rs +++ b/ablescript_cli/src/repl.rs @@ -16,7 +16,7 @@ pub fn repl(ast_print: bool) { Ok(readline) => { let readline = readline.trim_end(); rl.add_history_entry(readline); - + let partial_data = match partial { Some(line) => line + readline, None => readline.to_owned(),