blob: d9a5cf1c01c8fbbf2a4805617f4decee88e51ef5 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
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
}
//odinfmt: disable
AH :: Reg { index = 0b000, size = .Bits_8H }
//
AL :: Reg { index = 0b000, size = .Bits_8 }
//
AX :: Reg { index = 0b000, size = .Bits_16 }
//
EAX :: Reg { index = 0b000, size = .Bits_32 }
//odinfmt: enable
Instruction :: struct {
mnemonic: Mnemonic,
prefixes: LegacyPrefixes,
operands: []Operand,
}
// odinfmt: disable
Bar :: struct{}
// odinfmt: enable
// Foo doc
Foo :: struct {}
|