Open FWDekker opened 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 ^^
In older MATLAB versions, you could pass named arguments to a function as
foo("bar", 4)
. The functionfoo
then knows that the argumentbar
has value4
. As of MATLAB R2021a, there is a new, equivalent syntax:foo(bar = 4)
. Currently, the MATLAB IntelliJ plugin does not support this syntax: Writingfoo(bar = 4)
incorrectly results in the warningVariable 'bar' is never used
. I think the plugin should recognise this new syntax and not emit the warning.