repl: add some array functions

pull/5548/head
Maddi Kopfermann 2020-06-28 11:24:38 +02:00 committed by GitHub
parent d9409006fa
commit f5fca00d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,8 @@ fn run_repl(workdir string, vrepl_prefix string) {
'=', '++', '--', '<<',
'//', '/*',
'fn ', 'pub ', 'mut ', 'enum ', 'const ', 'struct ', 'interface ', 'import ',
'#include ', ':=', 'for ', 'or '
'#include ', ':=', 'for ', 'or ', 'insert', 'delete', 'prepend',
'sort', 'clear', 'trim',
]
mut is_statement := false
for pattern in possible_statement_patterns {