akamud / vscode-theme-onedark

VSCode Theme based on Atom's One Dark theme
MIT License
283 stars 198 forks source link

Variables considered Functions in MATLAB (.m) files #166

Open Gusmano-2-OSU opened 4 months ago

Gusmano-2-OSU commented 4 months ago

Sample code

variable = [1, 2, 3, 4, 5]; % A 1x5 vector represented by a variable

indexed_variable = variable(2); % We now index that variable to make a new variable

Filename and Language selected

This is a .m file, the file extension used for a basic MATLAB program. VSCode is also using MATLAB for this file.

VSCode theme Screenshot

image

image

Versions used

Extra information

In MATLAB, functions call arguments through (). However, variable indexing is also handled through (). It seems like the theme is assuming that the variables are actually functions. I use the official MATLAB plugin for VSCode.