v / cmd / tools / vdoc / testdata / multiline / main.v
72 lines · 62 sloc · 1.33 KB · 1957162c2a4545ec88c75f59d5c27c689d974a57
Raw
1// normal comment
2pub fn a1() {
3 println('hi')
4}
5
6// this should be merged
7// into the same line
8pub fn a2() {
9 println('hi')
10}
11
12// This should be its own paragraph.
13//
14// This should be another paragraph.
15pub fn a3() {
16 println('hi')
17}
18
19// This should be merged
20// into one paragraph.
21// Note: this should be its own paragraph.
22pub fn a4() {
23 println('hi')
24}
25
26// This should be its own paragraph.
27// NOTE: this should also be it own paragraph
28// note: this should be its own paragraph.
29pub fn a5() {
30 println('hi')
31}
32
33// A comment
34// Fixme: this should be its own paragraph.
35// fixme: this should be its own paragraph.
36// FIXME: this should be its own paragraph.
37pub fn a6() {
38 println('hi')
39}
40
41// A comment
42// TODO: this should be its own paragraph.
43// todo: this should be its own paragraph.
44// Todo: this should be its own paragraph.
45pub fn a7() {
46 println('hi')
47}
48
49// A comment
50// TODO: this should be its own paragraph.
51// NOTE: this should be its own paragraph.
52// FIXME: this should be its own paragraph.
53pub fn a8() {
54 println('hi')
55}
56
57// Some info that should not be added as doc comment
58// A align 2 bit Note: for now only 1 used!
59// U uppercase 1 bit 0 do nothing, 1 do to_upper()
60
61// normal comment
62pub fn a9() {
63 println('hi')
64}
65
66// foo does stuff
67// ```
68// this is a multiline codeblock.
69// second line
70// third line.
71// ```
72pub fn foo() {}
73