repl: fix one-line for-loop printing

pull/5002/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -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 {