florianschanda / miss_hit

MATLAB Independent, Small & Safe, High Integrity Tools - code formatter and more
GNU General Public License v3.0
162 stars 21 forks source link

Line continuation starting statements #142

Closed niklasnylen closed 3 years ago

niklasnylen commented 4 years ago

Using line continuation between properties leads to a messed up, albeit technically not erroneous, autofix. Before:

properties
    foo, ...
    bar
end

After:

properties
    foo
    ...
    bar
end

Normal line continuation, such as the one below, does not give any strange behaviour in the properties section

properties
    foo = ...
        'bar'
end
florianschanda commented 4 years ago

@niklasnylen Just to let you know why this is still open: there are some situations where a single run with --fix leaves you in a state where you need to run --fix again. This process does terminate eventually, but it would be really good if only a single --fix run was necessary.

florianschanda commented 3 years ago

I am closing this now, and the multiple-fix problem will be resolved with the future tool mh_reformat