There is a problem in syntax highlighting for MATLAB strings. String char is '. But ' also means data transpose. So both
a = [1 2]';
and
b = '[1 2]';
are valid. But all following code of the first case is highlighted as string as an open string is detected which is not closed. This makes no sense. A string can not be longer than one line.
My MATLAB word file starts with:
/L12"MATLAB M" Nocase Line Comment Num = 2% Block Comment On = %{ Block Comment Off = %} String Chars = ' File Extensions = bi m M
/Function String = "%[ ^t]++function[ ^t]+*=[ .^t^p]+^([a-z0-9_]+^)"
/Function String 1 = "%[ ^t]++function[ ^t]+[ .^t^p]+^([a-z0-9_]+^)"
/Delimiters = ~!@$^&*()-+=|\/{}[]:;"'<> , .?
Any ideas?
tbeu
a = [1 2]';
and
b = '[1 2]';
are valid. But all following code of the first case is highlighted as string as an open string is detected which is not closed. This makes no sense. A string can not be longer than one line.
My MATLAB word file starts with:
/L12"MATLAB M" Nocase Line Comment Num = 2% Block Comment On = %{ Block Comment Off = %} String Chars = ' File Extensions = bi m M
/Function String = "%[ ^t]++function[ ^t]+*=[ .^t^p]+^([a-z0-9_]+^)"
/Function String 1 = "%[ ^t]++function[ ^t]+[ .^t^p]+^([a-z0-9_]+^)"
/Delimiters = ~!@$^&*()-+=|\/{}[]:;"'<> , .?
Any ideas?
tbeu