vrepl: fix declaring structs

pull/4906/head
Maddi Kopfermann 2020-05-15 15:12:15 +02:00 committed by GitHub
parent 66cb61c242
commit d73bedc1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
if !(filter_line.contains('=') || filter_line.contains('++') || if !(filter_line.contains('=') || filter_line.contains('++') ||
filter_line.contains('--') || filter_line.contains('<<') || filter_line.contains('--') || filter_line.contains('<<') ||
filter_line.contains('//') || filter_line.contains('/*') || filter_line.contains('//') || filter_line.contains('/*') ||
filter_line.contains('struct') ||
filter_line.starts_with('import') || r.line == '') && !func_call { filter_line.starts_with('import') || r.line == '') && !func_call {
temp_line = 'println($r.line)' temp_line = 'println($r.line)'
temp_flag = true temp_flag = true