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:
parent
2adfbfc830
commit
c95a1138ba
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user