1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

repl: fix <<

This commit is contained in:
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

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)'