vrepl: fix optional call
parent
514ee9d396
commit
5f36874c9b
|
@ -198,7 +198,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
|
|||
'=', '++', '--', '<<',
|
||||
'//', '/*',
|
||||
'fn ', 'pub ', 'mut ', 'enum ', 'const ', 'struct ', 'interface ', 'import ',
|
||||
'#include ', ':=', 'for '
|
||||
'#include ', ':=', 'for ', 'or '
|
||||
]
|
||||
mut is_statement := false
|
||||
for pattern in possible_statement_patterns {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
import os
|
||||
os.cp('', '') or {return}
|
||||
===output===
|
Loading…
Reference in New Issue