Closed psmskelton closed 4 months ago
Thanks for reporting this! Moving the issue over to MATLAB-Language-grammar
@dklilley - Apologies for incorrect repo.
There's a discussion on the Linguist repo about issues with other languages, and I added a comment there regarding GitHub's incorrect parsing of MATLAB comments (https://github.com/github-linguist/linguist/issues/6668#issuecomment-1982121637). Is that a Linguist issue, or an issue provided by this grammar engine?
Describe the bug Syntax highlighting has a few quirky bugs. One I've come across in dealing with other people's code (shudder) is EOL comments on while loops. These only appear to be highlighted if they are preceded by a semicolon, which isn't great.
To Reproduce Try something bad, like putting EOL comments on while loops. That being said, GitHub's Linguist model is completely broken for comments in MATLAB code, as this demonstrates, so look at the VSCode screenshot below.
Expected behavior Consistent highlighting of EOL comments.
Screenshots
Useful Information