You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I.e. functions that have one or more leading setup arguments followed by a list of key-values. A common style for these is to write the leading arguments on the same line and only expand the list of key-values.
switch(foo,
a=1,
b=2
)
Air currently fully expands:
switch(
foo,
a=1,
b=2
)
We could:
Special-case switch()
Add an air.toml section with a list of functions and the number of sticky argument
Using the array-of-objects syntax for toml:
[format]
[[format.sticky]]
name = "ggproto"n = 2# Undo the default special-case for `switch()`
[[format.sticky]]
name = "switch"number = 0
The fully expanded style could still be opted-into via a persistent line.
The text was updated successfully, but these errors were encountered:
For:
switch()
I.e. functions that have one or more leading setup arguments followed by a list of key-values. A common style for these is to write the leading arguments on the same line and only expand the list of key-values.
Air currently fully expands:
We could:
switch()
Using the array-of-objects syntax for toml:
The fully expanded style could still be opted-into via a persistent line.
The text was updated successfully, but these errors were encountered: