mirror of
https://github.com/vlang/v.git
synced 2025-09-09 23:39:39 -04:00
vrepl: cleanup in vrepl.v (#21834)
This commit is contained in:
parent
1229ccf98a
commit
70e78cc766
@ -54,12 +54,6 @@ const possible_statement_patterns = [
|
|||||||
'#include ',
|
'#include ',
|
||||||
'for ',
|
'for ',
|
||||||
'or ',
|
'or ',
|
||||||
'insert(',
|
|
||||||
'delete(',
|
|
||||||
'prepend(',
|
|
||||||
'sort(',
|
|
||||||
'clear(',
|
|
||||||
'trim(',
|
|
||||||
' as ',
|
' as ',
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -508,9 +502,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
|||||||
r.lines << r.line
|
r.lines << r.line
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for r.temp_lines.len > 0 {
|
r.temp_lines.clear()
|
||||||
r.temp_lines.delete(0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if r.is_pin {
|
if r.is_pin {
|
||||||
r.pin()
|
r.pin()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user