mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vrepl: fix declaring structs
This commit is contained in:
parent
66cb61c242
commit
d73bedc1fb
@ -160,6 +160,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
|
||||
if !(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 {
|
||||
temp_line = 'println($r.line)'
|
||||
temp_flag = true
|
||||
|
Loading…
Reference in New Issue
Block a user