mirror of
https://github.com/vlang/v.git
synced 2025-09-10 16:00:31 -04: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 ',
|
'fn ', 'pub ', 'mut ', 'enum ', 'const ', 'struct ', 'interface ', 'import ',
|
||||||
'#include ', ':='
|
'#include ', ':=', 'for '
|
||||||
]
|
]
|
||||||
mut is_statement := false
|
mut is_statement := false
|
||||||
for pattern in possible_statement_patterns {
|
for pattern in possible_statement_patterns {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user