blob: 0d5e54769faee9bc74c5e9738baf0b25c7c2b850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
package odinfmt_test
//Comments are really important
GetPhysicsBody :: proc(index: int) -> PhysicsBody // Returns a physics body of the bodies pool at a specific index
line_comments :: proc() {
// comment
thing: int
}
multiline_comments :: proc() {
/* hello
there*/
// comment
thing: int
}
line_comments_one_line_seperation :: proc() {
// comment
thing: int
}
//More comments YAY
bracket_comments_alignment :: proc() {
{ // Describe block
a := 10
// etc..
}
}
empty_odin_fmt_block :: proc() {
//odinfmt: disable
//a := 10
//odinfmt: enable
}
disabled_comment_after_normal_comments :: proc() {
// comment
// hello
//odinfmt: disable
return true
//odinfmt: enable
}
disabled_comments_with_multiple_statements_one_lined :: proc() {
//odinfmt: disable
i:int;b:int
//odinfmt: enable
}
|