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

vet: remove false positive space indentation error inside block comments (#9565)

This commit is contained in:
Lukas Neubert
2021-04-02 16:26:53 +02:00
committed by GitHub
parent 1bb48c3577
commit e438b158a6
3 changed files with 19 additions and 3 deletions

View File

@ -1,2 +1,3 @@
cmd/tools/vvet/tests/indent_with_space.vv:2: error: Looks like you are using spaces for indentation.
cmd/tools/vvet/tests/indent_with_space.vv:10: error: Looks like you are using spaces for indentation.
NB: You can run `v fmt -w file.v` to fix these errors automatically

View File

@ -1,3 +1,13 @@
fn main() {
_ = 1 == 2
}
fn block_comments() {
/* tab to indent the comment
spaces before
also spaces before
same here */
/* spaces for comment indentation (ouch)
and inside too
*/
}