forked from AbleScript/ablescript
cargo fmt
This commit is contained in:
parent
45007e7d2b
commit
19fa04f979
|
@ -139,7 +139,7 @@ fn get_string(lexer: &mut Lexer<Token>) -> Option<String> {
|
||||||
lexer.bump(lexer.remainder().find("*/")?);
|
lexer.bump(lexer.remainder().find("*/")?);
|
||||||
let string = lexer.slice()[2..].to_owned();
|
let string = lexer.slice()[2..].to_owned();
|
||||||
lexer.bump(2);
|
lexer.bump(2);
|
||||||
|
|
||||||
Some(string)
|
Some(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub fn repl(ast_print: bool) {
|
||||||
Ok(readline) => {
|
Ok(readline) => {
|
||||||
let readline = readline.trim_end();
|
let readline = readline.trim_end();
|
||||||
rl.add_history_entry(readline);
|
rl.add_history_entry(readline);
|
||||||
|
|
||||||
let partial_data = match partial {
|
let partial_data = match partial {
|
||||||
Some(line) => line + readline,
|
Some(line) => line + readline,
|
||||||
None => readline.to_owned(),
|
None => readline.to_owned(),
|
||||||
|
|
Loading…
Reference in a new issue