Merge branch 'main' into auto-snake-case

This commit is contained in:
Sam Mohr 2025-01-05 16:50:24 -08:00
commit cd0e2a4474
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
24 changed files with 95 additions and 51 deletions

View file

@ -1 +1 @@
module { x, y ? 0 } -> [menu]
module { x, y ?? 0 } -> [menu]

View file

@ -1,8 +1,8 @@
M
{ s ? s
{ s ?? s
{ J &
} }
{ s ? s
{ s ?? s
{ J &
} } : p
y

View file

@ -2497,13 +2497,13 @@ mod test_fmt {
expr_formats_to(
indoc!(
r"
f : { a ?Str }
f : { a ??Str }
f"
),
indoc!(
r"
f : { a ? Str }
f : { a ?? Str }
f"
),
@ -2513,7 +2513,7 @@ mod test_fmt {
indoc!(
r"
f : {
a ?Str,
a ??Str,
}
f"
@ -2521,7 +2521,7 @@ mod test_fmt {
indoc!(
r"
f : {
a ? Str,
a ?? Str,
}
f"
@ -2743,7 +2743,7 @@ mod test_fmt {
r"
f :
{
someField ? Int * # comment 1
someField ?? Int * # comment 1
,
# comment 2
}
@ -2753,7 +2753,7 @@ mod test_fmt {
indoc!(
r"
f : {
some_field ? Int *, # comment 1
some_field ?? Int *, # comment 1
# comment 2
}