diff --git a/vlib/v/scanner/scanner.v b/vlib/v/scanner/scanner.v index be14872295..175ad58cb6 100644 --- a/vlib/v/scanner/scanner.v +++ b/vlib/v/scanner/scanner.v @@ -779,6 +779,10 @@ fn (mut s Scanner) text_scan() token.Token { return s.new_token(.lpar, '', 1) } `)` { + // TODO `$if vet {` for performance + if s.pref.is_vet && s.text[s.pos - 1] == ` ` { + println('$s.file_path:$s.line_nr: Looks like you are adding a space before `)`') + } return s.new_token(.rpar, '', 1) } `[` {