repl: fix <<

pull/4516/head
yuyi 2020-04-20 03:52:46 +08:00 committed by GitHub
parent 4de16e9f0f
commit 3b00132e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ pub fn run_repl(workdir string, vrepl_prefix string) []string {
filter_line.contains(',') ||
filter_line.contains('++') ||
filter_line.contains('--') ||
filter_line.contains('<<') ||
filter_line.starts_with('import') ||
r.line == '') && !func_call {
temp_line = 'println($r.line)'