MBeautifier icon indicating copy to clipboard operation
MBeautifier copied to clipboard

Parsing whitespace separated dot operator in a array defintions

Open mrelg opened this issue 1 year ago • 0 comments
trafficstars

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.

mrelg avatar Apr 29 '24 20:04 mrelg