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

v vet: give an error for trailing whitespace (#9574)

This commit is contained in:
Lukas Neubert
2021-04-09 12:22:14 +02:00
committed by GitHub
parent ddb2e72301
commit 46e7e27ba3
12 changed files with 67 additions and 20 deletions

View File

@ -0,0 +1,16 @@
// NB: This file has and *should* have trailing spaces.
// When making changes, please ensure they are not removed.
fn after_comments() {
// spaces after line comments give errors
/*
in block comments
too
*/
}
fn main() {
var := 'error about the spaces right there'
no_err := "inside multi line strings it's fine.
but not after"
}