Put shorter variable attributes on one line with the attribute target
Currently, ols formats @static x := 3 to:
@(static)
x := 3
which, for such a short decorator, is unnecessary. ols should (by default, or as an option) format attributes to appear on the same line as their target, as well as dropping parenthesis when no arguments are passed (as shown in the https://odin-lang.org/docs/overview/#private example)
Yes that should be the default.
i think there should be an option for ols to instead format it as:
@static x := 3
Maybe you misunderstood me. The default should be @static x := 3 for variables with no other attributes in the variables, and that have short variable names.
I just need to implement it as some point.
ah you meant should be as in should be implemented? i see, i was a bit confused by the wording
Fixed. It should now be able to be one lined.