Open msfschaffner opened 4 years ago
b/145156958
Tabular alignment is a very nice-to-have feature, I concur that it makes reading much easier in many contexts. However, many other issues are ahead of this. When the time comes, this will probably be split into separate bugs, one for each specific schema, and a common blocking bug regarding general internal support for tabular alignment.
Some thoughts:
And, does/should alignment persist across //-comments?
hm... I do not think so. I.e. if it is a full line comment as in
assign xx = ...;
assign yy = ...;
// my comment
assign super_long_name = ...;
assign zz = ...;
I would argue that this is enough separation to warrant a new alignment block...
Tabular alignment is currently not handled by the tool. Below are a couple of test cases for this feature.
example a)
should:
is:
example b)
should:
is:
example c)
should:
is:
example d)
should:
is:
example e)
should:
is:
example f)
is:
should:
example g)
should:
is:
example h)
this is an example for tabular alignment for ternaries
should:
is: