Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gusmano-2-OSU opened this issue Mar 8, 2024 · 0 comments
Open

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

Gusmano-2-OSU opened this issue Mar 8, 2024 · 0 comments

Comments

@Gusmano-2-OSU
Copy link

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

  • VSCode version: 1.87.1
  • Theme version: 2.3.0

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant