kornilova203 / matlab-IntelliJ-plugin

Matlab support for JetBrains IDEs
MIT License
124 stars 17 forks source link

Support new name-value argument pair syntax #118

Open FWDekker opened 1 year ago

FWDekker commented 1 year ago

In older MATLAB versions, you could pass named arguments to a function as foo("bar", 4). The function foo then knows that the argument bar has value 4. As of MATLAB R2021a, there is a new, equivalent syntax: foo(bar = 4). Currently, the MATLAB IntelliJ plugin does not support this syntax: Writing foo(bar = 4) incorrectly results in the warning Variable 'bar' is never used. I think the plugin should recognise this new syntax and not emit the warning.

FWDekker commented 1 year ago

I have a few other cases in which the syntax checker makes mistakes, incorrectly giving warnings or errors. However, I don't want to overwhelm you with new issues, so please let me know if you're interested, and if you are, please let me know how you would like me to communicate them to you ^^