mathworks / MATLAB-extension-for-vscode

This extension provides support for editing MATLAB® code in Visual Studio® Code and includes features such as syntax highlighting, code analysis, navigation support, and more.
https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab
MIT License
234 stars 15 forks source link

Incorrect syntax highlighting of a comment on a while loop #72

Closed cb0502 closed 11 months ago

cb0502 commented 11 months ago

When writing a comment after an if condition, it is correctly recognized as a comment (syntax highlighting). However, on a while loop, this is not highlighted correctly.

Repro Code: if condition %comment end

while condition %comment end

Screenshot: image

dklilley commented 11 months ago

Thank you for reporting this!

This is being tracked separately by mathworks/MATLAB-Language-grammar#66