summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-11-04 19:08:25 +0100
committerDanielGavin <danielgavin5@hotmail.com>2023-11-04 19:08:25 +0100
commit3294b99999185011e13116ed11d16499c799d3f2 (patch)
treec7dd97912a4244909a7563db6bfa150f0abf0d31 /tools
parentdcaa30b0e24469a40c6a157f0a1c7e1a1a2406c1 (diff)
Fix issue with anon structs in arrays.
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/.snapshots/calls.odin16
-rw-r--r--tools/odinfmt/tests/random/.snapshots/document.odin36
2 files changed, 26 insertions, 26 deletions
diff --git a/tools/odinfmt/tests/.snapshots/calls.odin b/tools/odinfmt/tests/.snapshots/calls.odin
index 919a5a0..a967448 100644
--- a/tools/odinfmt/tests/.snapshots/calls.odin
+++ b/tools/odinfmt/tests/.snapshots/calls.odin
@@ -79,7 +79,7 @@ calls :: proc() {
result = vk.CreateInsance(
my_really_cool_call(
- T{
+ T {
aaaaaaaaaaaaaaaaaaaaa,
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
cccccccccccccccccccccccccccccccc,
@@ -89,7 +89,7 @@ calls :: proc() {
)
result = vk.CreateInsance(
my_really_cool_call(
- T{
+ T {
a = aaaaaaaaaaaaaaaaaaaaa,
b = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
c = cccccccccccccccccccccccccccccccc,
@@ -99,7 +99,7 @@ calls :: proc() {
)
result = vk.CreateInsance(
my_really_cool_call(
- T{
+ T {
aaaaaaaaaaaaaaaaaaaaa,
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
cccccccccccccccccccccccccccccccc,
@@ -111,7 +111,7 @@ calls :: proc() {
)
result = vk.CreateInsance(
my_really_cool_call(
- T{
+ T {
a = aaaaaaaaaaaaaaaaaaaaa,
b = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
c = cccccccccccccccccccccccccccccccc,
@@ -122,7 +122,7 @@ calls :: proc() {
)
result = vk.CreateInsance(
my_really_cool_call(
- T{
+ T {
a = aaaaaaaaaaaaaaaaaaaaa,
b = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
c = cccccccccccccccccccccccccccccccc,
@@ -152,7 +152,7 @@ calls :: proc() {
})
test_2(
- Foo{
+ Foo {
field1 = 1,
field2 = "hello",
field3 = 1,
@@ -169,7 +169,7 @@ calls :: proc() {
})
test3(
- Foo{
+ Foo {
field1 = 1,
field2 = "hello",
field3 = 1,
@@ -185,7 +185,7 @@ calls :: proc() {
resuuuuuuuuult := add_to_long_list_of_values(
fooooooooooooo,
- Foo{
+ Foo {
field1 = 1,
field2 = "hello",
field3 = 1,
diff --git a/tools/odinfmt/tests/random/.snapshots/document.odin b/tools/odinfmt/tests/random/.snapshots/document.odin
index 9362864..493e570 100644
--- a/tools/odinfmt/tests/random/.snapshots/document.odin
+++ b/tools/odinfmt/tests/random/.snapshots/document.odin
@@ -293,7 +293,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
case Document_Cons:
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.rhs,
@@ -302,7 +302,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
)
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.lhs,
@@ -312,7 +312,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
case Document_Align:
append(
list,
- Tuple{
+ Tuple {
indentation = 0,
mode = data.mode,
document = v.document,
@@ -322,7 +322,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
case Document_Nest:
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation + v.indentation,
mode = data.mode,
document = v.document,
@@ -345,7 +345,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
if data.mode == .Break {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation + v.indentation,
mode = data.mode,
document = v.document,
@@ -355,7 +355,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
} else {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.document,
@@ -366,7 +366,7 @@ fits :: proc(width: int, list: ^[dynamic]Tuple) -> bool {
case Document_Group:
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.document,
@@ -430,7 +430,7 @@ format :: proc(
case Document_Cons:
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.rhs,
@@ -439,7 +439,7 @@ format :: proc(
)
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.lhs,
@@ -449,7 +449,7 @@ format :: proc(
case Document_Nest:
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation + v.indentation,
mode = data.mode,
document = v.document,
@@ -459,7 +459,7 @@ format :: proc(
case Document_Align:
append(
list,
- Tuple{
+ Tuple {
indentation = 0,
mode = data.mode,
document = v.document,
@@ -492,7 +492,7 @@ format :: proc(
if mode == .Break {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation + v.indentation,
mode = data.mode,
document = v.document,
@@ -502,7 +502,7 @@ format :: proc(
} else {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = data.mode,
document = v.document,
@@ -519,7 +519,7 @@ format :: proc(
append(
&l,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = .Flat,
document = v.document,
@@ -530,7 +530,7 @@ format :: proc(
if data.mode == .Fit {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = .Fit,
document = v.document,
@@ -540,7 +540,7 @@ format :: proc(
} else if fits(width - consumed, &l) && v.mode != .Break {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = .Flat,
document = v.document,
@@ -551,7 +551,7 @@ format :: proc(
if v.mode == .Fit {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = .Fit,
document = v.document,
@@ -561,7 +561,7 @@ format :: proc(
} else {
append(
list,
- Tuple{
+ Tuple {
indentation = data.indentation,
mode = .Break,
document = v.document,