diff --git a/cmd/tools/vrepl.v b/cmd/tools/vrepl.v index 820a5a08ab..107b6c90c6 100644 --- a/cmd/tools/vrepl.v +++ b/cmd/tools/vrepl.v @@ -54,7 +54,8 @@ fn (mut r Repl) checks() bool { fn (r &Repl) function_call(line string) bool { for function in r.functions_name { - if line.starts_with(function) { + is_function_definition := line.replace(' ', '').starts_with("$function:=") + if line.starts_with(function) && !is_function_definition { return true } }