1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/vvet/tests/indent_with_space.vv

25 lines
442 B
V

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
*/
}
fn space_inside_strings() {
// Plain strings
str := "Bad space usage for variable indentation.
Here it's fine.
Here too."
str2 := 'linebreak and space\n inside'
// String interpolation
si1 := 'Error here $foo
and not here'
}