You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following (I agree strange) code example, does not look like it is highlighted properly in VS Code with the MATLAB plugin. The Editor in MATLAB does show the highlighting correctly:
a = struct("Bla"', "bla"');
edit: adding more version details:
VS Code 1.78.1 on Windows 10 22H2
Extension version: v1.0.2
Configured MATLAB in the Extension settings: R2023a Update 1
The text was updated successfully, but these errors were encountered:
That is also what I see and I think is wrong. This is what the MATLAB editor shows:
Just to make sure: this syntax is valid and I would expect proper parenthesis matching and string highlighting. The first "bla" shows up with different colored first and last ", it's as if the single quotes and double quotes are not properly matched. The single quotes in this example are a transpose operation, not a delimiter for a char array.
Thanks for reporting this! You are correct - this is being highlighted incorrectly, and the single quotes should instead be interpreted as transpose characters, as you stated.
The following (I agree strange) code example, does not look like it is highlighted properly in VS Code with the MATLAB plugin. The Editor in MATLAB does show the highlighting correctly:
a = struct("Bla"', "bla"');
edit: adding more version details:
VS Code 1.78.1 on Windows 10 22H2
Extension version: v1.0.2
Configured MATLAB in the Extension settings: R2023a Update 1
The text was updated successfully, but these errors were encountered: