aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests/comments.odin
blob: a7bea7268436ba8a14b796814c23a037ae931d40 (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
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..
    }
}