davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsing whitespace separated dot operator in a array defintions

mrelg opened this issue · comments

disp( [ 'Error: ' ME . message ] );
disp( [ 'Error: ' ME .message ] );
disp( [ 'Error: ' ME. message ] );
disp( [ 'Error: ' ME.message ] );
disp( [ 'Error: ', ME . message ] );
disp( [ 'Error: ', ME .message ] );
disp( [ 'Error: ', ME. message ] );

should all be parsed the same as
disp( [ 'Error: ', ME.message ] );

MBeautifier is erroneously parsing
disp( [ 'Error: ' ME . message ] );
like this
disp( [ 'Error: ', ME, ., message ] );
which isn't valid Matlab syntax and neither is it in agreement with Matlab parser.