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

repl: fix one-line for-loop printing

This commit is contained in:
Ned Palacios 2020-05-24 16:36:17 +08:00 committed by GitHub
parent 2adfbfc830
commit c95a1138ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
'=', '++', '--', '<<',
'//', '/*',
'fn ', 'pub ', 'mut ', 'enum ', 'const ', 'struct ', 'interface ', 'import ',
'#include ', ':='
'#include ', ':=', 'for '
]
mut is_statement := false
for pattern in possible_statement_patterns {