mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@@ -305,7 +305,6 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
|||||||
return int(rc)
|
return int(rc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
|
||||||
}
|
}
|
||||||
r.line = line
|
r.line = line
|
||||||
if r.line == '\n' {
|
if r.line == '\n' {
|
||||||
@@ -388,12 +387,12 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
|||||||
'#include ',
|
'#include ',
|
||||||
'for ',
|
'for ',
|
||||||
'or ',
|
'or ',
|
||||||
'insert',
|
'insert(',
|
||||||
'delete',
|
'delete(',
|
||||||
'prepend',
|
'prepend(',
|
||||||
'sort',
|
'sort(',
|
||||||
'clear',
|
'clear(',
|
||||||
'trim',
|
'trim(',
|
||||||
' as ',
|
' as ',
|
||||||
]
|
]
|
||||||
mut is_statement := false
|
mut is_statement := false
|
||||||
|
|||||||
7
vlib/v/tests/repl/error_exitasdfasdf.repl
Normal file
7
vlib/v/tests/repl/error_exitasdfasdf.repl
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
exitasdfasdf
|
||||||
|
===output===
|
||||||
|
error: undefined ident: `exitasdfasdf`
|
||||||
|
5 | import math
|
||||||
|
6 |
|
||||||
|
7 | println(exitasdfasdf)
|
||||||
|
| ~~~~~~~~~~~~
|
||||||
Reference in New Issue
Block a user