MBeautifier introduces major sytax errors
casperdcl opened this issue · 0 comments
casperdcl commented
this is a bug due to running MBeauifier
changing stack{end-1}
to stack{end -1}
and then (incorrectly) to stack{end, -1}
. After this happens, if you run MBeautifier
a third time, MIndenter/performIndenting
errors:
Subscript indices must either be real positive integers or logicals.
Error in MBeautifier.MIndenter/performIndenting (line 93)
if (strcmp(stack{end, -1}, 'function'))
Error in MBeautify.formatFileNoEditor (line 53)
text = indenter.performIndenting(text);