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

repl: add some array functions

This commit is contained in:
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

View File

@ -198,7 +198,8 @@ 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 ', ':=', 'for ', 'or ' '#include ', ':=', 'for ', 'or ', 'insert', 'delete', 'prepend',
'sort', 'clear', 'trim',
] ]
mut is_statement := false mut is_statement := false
for pattern in possible_statement_patterns { for pattern in possible_statement_patterns {