Open studgeek opened 5 months ago
As an added tweak, could use $prev
to keep same column width as $next
.
Implementation would be similar to #36, perhaps with some refactoring to handle commonalities between $next and $previous.
For the specific use-case of a bits
view of an existing value, would something like #78 work, if that were to be resolved?
As an added tweak, could use
$prev
to keep same column width as$next
.
FWIW, if we do implement something like this then the formatter should handle this just fine, inserting spaces after $next
to match columns with $previous
It could be helpful to introduce a keyword like $previous to indicate the offset of the previous field.
Currently in .emb if we want to have multiple overlapping fields the .emb has to use variations like the following to indicate that a field is offset at the same place as the previous field:
Introducing a
$previous
keyword would make these overlaps more obvious and reduce risk of a math error by the developer:Note that #99 would provide an alternative like the following also, but it feels like $previous would be easier to implement and clearer in these overlapping case.